aboutsummaryrefslogtreecommitdiff
path: root/examples/boot/bootloader/nrf/Cargo.toml
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2022-06-27 12:46:19 +0000
committerGitHub <[email protected]>2022-06-27 12:46:19 +0000
commitc7703ba17c5da3d294544c3a4f451bb7bd04ccfb (patch)
tree9136ffa9f1291f38d399176c038bbec931912f32 /examples/boot/bootloader/nrf/Cargo.toml
parent42bc510effae528e7080ddb6bb8465af1bea6856 (diff)
parentf1f90b17b5c1c5cb56b6ac7722b5ef91b6cc3f2d (diff)
Merge #831
831: Move bootloader main to examples r=lulf a=lulf This should remove some confusion around embassy-boot-* being a library vs. a binary. The binary is now an example bootloader instead. Co-authored-by: Ulf Lilleengen <[email protected]> Co-authored-by: Ulf Lilleengen <[email protected]>
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