diff options
Diffstat (limited to 'examples/boot/bootloader/stm32wba-dfu/Cargo.toml')
| -rw-r--r-- | examples/boot/bootloader/stm32wba-dfu/Cargo.toml | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/examples/boot/bootloader/stm32wba-dfu/Cargo.toml b/examples/boot/bootloader/stm32wba-dfu/Cargo.toml new file mode 100644 index 000000000..9240d1808 --- /dev/null +++ b/examples/boot/bootloader/stm32wba-dfu/Cargo.toml | |||
| @@ -0,0 +1,64 @@ | |||
| 1 | [package] | ||
| 2 | edition = "2021" | ||
| 3 | name = "stm32wba6-dfu-bootloader-example" | ||
| 4 | version = "0.1.0" | ||
| 5 | description = "Example USB DFUbootloader for the STM32WBA series of chips" | ||
| 6 | license = "MIT OR Apache-2.0" | ||
| 7 | |||
| 8 | [dependencies] | ||
| 9 | defmt = { version = "1.0.1", optional = true } | ||
| 10 | defmt-rtt = { version = "1.0.0", optional = true } | ||
| 11 | |||
| 12 | embassy-stm32 = { path = "../../../../embassy-stm32", features = [] } | ||
| 13 | embassy-boot-stm32 = { path = "../../../../embassy-boot-stm32" } | ||
| 14 | cortex-m = { version = "0.7.6", features = ["inline-asm", "critical-section-single-core"] } | ||
| 15 | embassy-sync = { version = "0.7.0", path = "../../../../embassy-sync" } | ||
| 16 | cortex-m-rt = { version = "0.7" } | ||
| 17 | embedded-storage = "0.3.1" | ||
| 18 | embedded-storage-async = "0.4.0" | ||
| 19 | cfg-if = "1.0.0" | ||
| 20 | embassy-usb-dfu = { version = "0.1.0", path = "../../../../embassy-usb-dfu", features = ["dfu", "cortex-m"] } | ||
| 21 | embassy-usb = { version = "0.5.0", path = "../../../../embassy-usb", default-features = false } | ||
| 22 | embassy-futures = { version = "0.1.1", path = "../../../../embassy-futures" } | ||
| 23 | |||
| 24 | [features] | ||
| 25 | defmt = [ | ||
| 26 | "dep:defmt", | ||
| 27 | "dep:defmt-rtt", | ||
| 28 | "embassy-boot-stm32/defmt", | ||
| 29 | "embassy-stm32/defmt", | ||
| 30 | "embassy-usb/defmt", | ||
| 31 | "embassy-usb-dfu/defmt" | ||
| 32 | ] | ||
| 33 | verify = ["embassy-usb-dfu/ed25519-salty"] | ||
| 34 | |||
| 35 | [profile.dev] | ||
| 36 | debug = 2 | ||
| 37 | debug-assertions = true | ||
| 38 | incremental = false | ||
| 39 | opt-level = 'z' | ||
| 40 | overflow-checks = true | ||
| 41 | |||
| 42 | [profile.release] | ||
| 43 | codegen-units = 1 | ||
| 44 | debug = 2 | ||
| 45 | debug-assertions = false | ||
| 46 | incremental = false | ||
| 47 | lto = 'fat' | ||
| 48 | opt-level = 'z' | ||
| 49 | overflow-checks = false | ||
| 50 | |||
| 51 | # do not optimize proc-macro crates = faster builds from scratch | ||
| 52 | [profile.dev.build-override] | ||
| 53 | codegen-units = 8 | ||
| 54 | debug = false | ||
| 55 | debug-assertions = false | ||
| 56 | opt-level = 0 | ||
| 57 | overflow-checks = false | ||
| 58 | |||
| 59 | [profile.release.build-override] | ||
| 60 | codegen-units = 8 | ||
| 61 | debug = false | ||
| 62 | debug-assertions = false | ||
| 63 | opt-level = 0 | ||
| 64 | overflow-checks = false | ||
