Skip to content

Commit 571a798

Browse files
Merge pull request #39 from erdnaxe/update_cargo_conf
Update Cargo configuration, remove deprecation warning
2 parents f0b16de + e2d40e9 commit 571a798

File tree

3 files changed

+9
-10
lines changed

3 files changed

+9
-10
lines changed

.cargo/config .cargo/config.toml

-8
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,3 @@ rustflags = [
77

88
[build]
99
target = "riscv32imac-unknown-none-elf"
10-
11-
[profile.release]
12-
opt-level = "z" # Optimize for size.
13-
codegen-units = 1
14-
lto = true
15-
16-
[profile.dev]
17-
opt-level = "z" # Optimize for size.

Cargo.toml

+7
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,10 @@ required-features = ["lcd"]
4444
name = "sdcard_test"
4545
required-features = ["sdcard"]
4646

47+
[profile.release]
48+
opt-level = "z" # Optimize for size.
49+
codegen-units = 1
50+
lto = true
51+
52+
[profile.dev]
53+
opt-level = "z" # Optimize for size.

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ sudo apt-get install gcc-riscv64-unknown-elf
4040

4141
### Building
4242

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

4646
To build all the provided examples run
@@ -181,7 +181,7 @@ To flash the firmware, execute `load` in GDB:
181181
```
182182

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

186186
```
187187
[target.riscv32imac-unknown-none-elf]

0 commit comments

Comments
 (0)