-
-
Notifications
You must be signed in to change notification settings - Fork 19
/
Cargo.toml
23 lines (20 loc) · 804 Bytes
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Define the Rust workspace, which contains all Rust projects
# All projects in the `rust` folder belong to this workspace
[workspace]
members = [
"rust/app",
"rust/macros",
"rust/mynewt"
]
# Options for `cargo build`
[profile.dev]
panic = "abort" # Disable stack unwinding on panic
codegen-units = 1 # Better optimizations
lto = true # Optimize linker by removing dead code
# Options for `cargo build --release`
[profile.release]
debug = true # Symbols are nice and they don't increase the size on Flash
panic = "abort" # Disable stack unwinding on panic
codegen-units = 1 # Better optimizations
lto = true # Optimize linker by removing dead code
opt-level = 'z' # Optimize for size