2020-06-09 09:52:27 +00:00
|
|
|
[package]
|
|
|
|
authors = ["Jorge Aparicio <jorge.aparicio@ferrous-systems.com>"]
|
|
|
|
edition = "2018"
|
2020-07-10 09:09:33 +00:00
|
|
|
license = "MIT OR Apache-2.0"
|
2020-06-09 09:52:27 +00:00
|
|
|
name = "firmware"
|
2020-07-10 09:09:33 +00:00
|
|
|
version = "0.0.0"
|
2020-06-09 09:52:27 +00:00
|
|
|
|
|
|
|
[build-dependencies]
|
|
|
|
consts = { path = "../common/consts" }
|
|
|
|
quote = "1"
|
2021-03-16 13:13:40 +00:00
|
|
|
usb2 = "0.0.1"
|
2020-06-09 09:52:27 +00:00
|
|
|
|
|
|
|
[dependencies]
|
|
|
|
consts = { path = "../common/consts" }
|
2021-01-21 13:03:57 +00:00
|
|
|
cortex-m = "0.6.4"
|
|
|
|
cortex-m-rt = "0.6.13"
|
2020-06-12 15:54:45 +00:00
|
|
|
cortex-m-rtic = "0.5.1"
|
2020-06-10 10:09:21 +00:00
|
|
|
dk = { path = "../../boards/dk", features = ["advanced"] }
|
2020-06-09 16:17:30 +00:00
|
|
|
heapless = "0.5.5"
|
2020-06-09 09:52:27 +00:00
|
|
|
log = "0.4.8"
|
|
|
|
panic-log = { path = "../../common/panic-log" }
|
|
|
|
usb = { path = "../common/usb" }
|
2021-03-16 13:13:40 +00:00
|
|
|
usb2 = "0.0.1"
|
2020-06-09 09:52:27 +00:00
|
|
|
|
|
|
|
# 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
|