2020-06-09 09:52:27 +00:00
|
|
|
[package]
|
|
|
|
authors = ["Jorge Aparicio <jorge.aparicio@ferrous-systems.com>"]
|
|
|
|
edition = "2018"
|
|
|
|
name = "apps"
|
|
|
|
version = "0.1.0"
|
|
|
|
|
|
|
|
[dependencies]
|
|
|
|
cortex-m = "0.6.2"
|
|
|
|
cortex-m-rt = "0.6.12"
|
2020-06-10 10:09:21 +00:00
|
|
|
dk = { path = "../../boards/dk", features = ["beginner"] }
|
2020-06-22 13:23:59 +00:00
|
|
|
heapless = "0.5.5"
|
2020-06-09 09:52:27 +00:00
|
|
|
log = "0.4.8"
|
|
|
|
panic-log = { path = "../../common/panic-log" }
|
|
|
|
|
|
|
|
# optimize code in both profiles
|
|
|
|
[profile.dev]
|
|
|
|
codegen-units = 1
|
|
|
|
debug = 1
|
|
|
|
debug-assertions = true # !
|
|
|
|
incremental = false
|
|
|
|
lto = "fat"
|
|
|
|
opt-level = 'z' # !
|
|
|
|
overflow-checks = false
|
|
|
|
|
|
|
|
[profile.release]
|
|
|
|
codegen-units = 1
|
|
|
|
debug = 1
|
|
|
|
debug-assertions = false
|
|
|
|
incremental = false
|
|
|
|
lto = "fat"
|
|
|
|
opt-level = 3
|
|
|
|
overflow-checks = false
|
|
|
|
|
|
|
|
# faster builds from scratch
|
|
|
|
[profile.dev.build-override]
|
|
|
|
codegen-units = 8
|
|
|
|
debug = false
|
|
|
|
debug-assertions = false
|
|
|
|
opt-level = 0
|
|
|
|
overflow-checks = false
|
|
|
|
|
|
|
|
[profile.release.build-override]
|
|
|
|
codegen-units = 8
|
|
|
|
debug = false
|
|
|
|
debug-assertions = false
|
|
|
|
opt-level = 0
|
|
|
|
overflow-checks = false
|
|
|
|
|
|
|
|
# adds unwind info to external assembly
|
|
|
|
[patch.crates-io]
|
|
|
|
cortex-m = { git = "https://github.com/rust-embedded/cortex-m" }
|