2022-06-24 17:56:15 +00:00
|
|
|
[package]
|
|
|
|
edition = "2021"
|
|
|
|
name = "nrf-bootloader-example"
|
|
|
|
version = "0.1.0"
|
|
|
|
description = "Bootloader for nRF chips"
|
2022-10-07 10:41:56 +00:00
|
|
|
license = "MIT OR Apache-2.0"
|
2022-06-24 17:56:15 +00:00
|
|
|
|
|
|
|
[dependencies]
|
|
|
|
defmt = { version = "0.3", optional = true }
|
2022-11-29 20:15:24 +00:00
|
|
|
defmt-rtt = { version = "0.4", optional = true }
|
2022-06-24 17:56:15 +00:00
|
|
|
|
2023-11-29 16:23:48 +00:00
|
|
|
embassy-nrf = { path = "../../../../embassy-nrf", features = [] }
|
2024-01-11 17:55:59 +00:00
|
|
|
embassy-boot-nrf = { path = "../../../../embassy-boot-nrf" }
|
2023-04-18 19:07:36 +00:00
|
|
|
cortex-m = { version = "0.7.6", features = ["inline-asm", "critical-section-single-core"] }
|
2023-12-04 13:03:30 +00:00
|
|
|
embassy-sync = { version = "0.5.0", path = "../../../../embassy-sync" }
|
2022-06-24 17:56:15 +00:00
|
|
|
cortex-m-rt = { version = "0.7" }
|
|
|
|
cfg-if = "1.0.0"
|
|
|
|
|
|
|
|
[features]
|
|
|
|
defmt = [
|
|
|
|
"dep:defmt",
|
|
|
|
"embassy-boot-nrf/defmt",
|
|
|
|
"embassy-nrf/defmt",
|
|
|
|
]
|
|
|
|
softdevice = [
|
|
|
|
"embassy-boot-nrf/softdevice",
|
|
|
|
]
|
2023-09-02 06:50:03 +00:00
|
|
|
debug = ["defmt-rtt", "defmt"]
|
2022-06-24 17:56:15 +00:00
|
|
|
|
|
|
|
[profile.dev]
|
|
|
|
debug = 2
|
|
|
|
debug-assertions = true
|
|
|
|
incremental = false
|
|
|
|
opt-level = 'z'
|
|
|
|
overflow-checks = true
|
|
|
|
|
|
|
|
[profile.release]
|
|
|
|
codegen-units = 1
|
|
|
|
debug = 2
|
|
|
|
debug-assertions = false
|
|
|
|
incremental = false
|
|
|
|
lto = 'fat'
|
|
|
|
opt-level = 'z'
|
|
|
|
overflow-checks = false
|
|
|
|
|
|
|
|
# do not optimize proc-macro crates = 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
|