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