Skip to content

Commit 8f130c1

Browse files
committed
Move cargo profile configuration to Cargo.toml
According to the Cargo book, profiles should be defined in `Cargo.toml` (https://doc.rust-lang.org/cargo/reference/profiles.html).
1 parent ded9e57 commit 8f130c1

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

.cargo/config

Lines changed: 0 additions & 8 deletions
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

Lines changed: 7 additions & 0 deletions
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.

0 commit comments

Comments
 (0)