Skip to content

Commit

Permalink
Merge pull request #39 from erdnaxe/update_cargo_conf
Browse files Browse the repository at this point in the history
Update Cargo configuration, remove deprecation warning
  • Loading branch information
romancardenas authored Nov 24, 2024
2 parents f0b16de + e2d40e9 commit 571a798
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 10 deletions.
8 changes: 0 additions & 8 deletions .cargo/config → .cargo/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,3 @@ rustflags = [

[build]
target = "riscv32imac-unknown-none-elf"

[profile.release]
opt-level = "z" # Optimize for size.
codegen-units = 1
lto = true

[profile.dev]
opt-level = "z" # Optimize for size.
7 changes: 7 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,10 @@ required-features = ["lcd"]
name = "sdcard_test"
required-features = ["sdcard"]

[profile.release]
opt-level = "z" # Optimize for size.
codegen-units = 1
lto = true

[profile.dev]
opt-level = "z" # Optimize for size.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ sudo apt-get install gcc-riscv64-unknown-elf

### Building

If you have a GD32VF103C**B** chip on your board, edit `.cargo/config` and replace
If you have a GD32VF103C**B** chip on your board, edit `.cargo/config.toml` and replace
`memory-c8.x` with `memory-cb.x`.

To build all the provided examples run
Expand Down Expand Up @@ -181,7 +181,7 @@ To flash the firmware, execute `load` in GDB:
```

To improve your workflow, you can put the aforementioned GDB commands in
a `debug.gdb` file and add these lines to `.cargo/config`:
a `debug.gdb` file and add these lines to `.cargo/config.toml`:

```
[target.riscv32imac-unknown-none-elf]
Expand Down

0 comments on commit 571a798

Please sign in to comment.