Skip to content

update Cargo.tomledition to 2024 #20

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 15 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "{{ project-name }}"
version = "0.1.0"
authors = ["{{ authors }}"]
edition = "2021"
edition = "2024"
license = "MIT OR Apache-2.0"

[[bin]]
Expand Down
36 changes: 35 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
# ch32-hal-template
# Rust ch32-hal-template


A template for use with [cargo-generate](https://github.com/cargo-generate/cargo-generate) to create applications targeting WCH's line of MCU.

## Generate the project

**Please make sure you have installed all [prerequisites](#prerequisites) first!**

To generate a project using this template:

```bash
Expand All @@ -14,6 +19,35 @@ If `cargo generate` is not installed:
cargo install cargo-generate
```

## Build & Flash

check [it](README-TEMPLATE.md)

If you need doc about you use [crates](https://crates.io/), run this command

```bash
cargo doc --open
```


## Prerequisites

> If you are new to rust embedded, you can refer to detailed instructions [Setting Up a Development Environment](https://esp-rs.github.io/book/installation/index.html) chapter of The Rust on ESP Book.

### Install Rust (with `rustup`)

If you don't have `rustup` installed yet, follow the instructions on the [rustup.rs site](https://rustup.rs)

### Install Cargo Sub-Commands

```sh
cargo install cargo-generate
cargo install --git https://github.com/ch32-rs/wlink
```

> [!NOTE]
> [wlink](https://github.com/ch32-rs/wlink) needs to be installed:

## License

Licensed under either of:
Expand Down