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