mirror of
https://github.com/ferrous-systems/embedded-trainings-2020.git
synced 2025-01-24 14:58:09 +00:00
54 lines
1.1 KiB
TOML
54 lines
1.1 KiB
TOML
[package]
|
|
authors = ["Jorge Aparicio <jorge.aparicio@ferrous-systems.com>"]
|
|
edition = "2018"
|
|
name = "dongle"
|
|
version = "0.1.0"
|
|
|
|
[dependencies]
|
|
consts = { path = "../../common/consts" }
|
|
cortex-m-rt = "0.6.12"
|
|
cortex-m-rtfm = "0.5.1"
|
|
embedded-hal = "0.2.3"
|
|
hal = { package = "nrf52840-hal", git = "https://github.com/japaric/nrf-hal", branch = "143+144" }
|
|
heapless = "0.5.5"
|
|
panic-halt = "0.2.0"
|
|
usb-device = "0.2.5"
|
|
usbd-serial = "0.1.0"
|
|
|
|
# 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
|
|
|
|
[patch.crates-io.usb-device]
|
|
git = "https://github.com/jonas-schievink/usb-device.git"
|
|
branch = "inhibit-setaddr-resp"
|