aboutsummaryrefslogtreecommitdiff
path: root/examples/boot/bootloader/nrf/Cargo.toml
diff options
context:
space:
mode:
Diffstat (limited to 'examples/boot/bootloader/nrf/Cargo.toml')
-rw-r--r--examples/boot/bootloader/nrf/Cargo.toml58
1 files changed, 58 insertions, 0 deletions
diff --git a/examples/boot/bootloader/nrf/Cargo.toml b/examples/boot/bootloader/nrf/Cargo.toml
new file mode 100644
index 000000000..8eb98623c
--- /dev/null
+++ b/examples/boot/bootloader/nrf/Cargo.toml
@@ -0,0 +1,58 @@
1[package]
2edition = "2021"
3name = "nrf-bootloader-example"
4version = "0.1.0"
5description = "Bootloader for nRF chips"
6
7[dependencies]
8defmt = { version = "0.3", optional = true }
9defmt-rtt = { version = "0.3", optional = true }
10
11embassy = { path = "../../../../embassy", default-features = false }
12embassy-nrf = { path = "../../../../embassy-nrf", default-features = false, features = ["nightly"] }
13embassy-boot-nrf = { path = "../../../../embassy-boot/nrf", default-features = false }
14cortex-m = { version = "0.7" }
15cortex-m-rt = { version = "0.7" }
16cfg-if = "1.0.0"
17
18[features]
19defmt = [
20 "dep:defmt",
21 "embassy-boot-nrf/defmt",
22 "embassy-nrf/defmt",
23]
24softdevice = [
25 "embassy-boot-nrf/softdevice",
26]
27debug = ["defmt-rtt"]
28
29[profile.dev]
30debug = 2
31debug-assertions = true
32incremental = false
33opt-level = 'z'
34overflow-checks = true
35
36[profile.release]
37codegen-units = 1
38debug = 2
39debug-assertions = false
40incremental = false
41lto = 'fat'
42opt-level = 'z'
43overflow-checks = false
44
45# do not optimize proc-macro crates = faster builds from scratch
46[profile.dev.build-override]
47codegen-units = 8
48debug = false
49debug-assertions = false
50opt-level = 0
51overflow-checks = false
52
53[profile.release.build-override]
54codegen-units = 8
55debug = false
56debug-assertions = false
57opt-level = 0
58overflow-checks = false