aboutsummaryrefslogtreecommitdiff
path: root/examples/boot/bootloader/stm32/Cargo.toml
diff options
context:
space:
mode:
authorUlf Lilleengen <[email protected]>2022-06-24 19:56:15 +0200
committerUlf Lilleengen <[email protected]>2022-06-24 19:56:15 +0200
commit776be79f7bb10b09e795e2ea93bb795a653c9b4c (patch)
tree269046d330ee503c84049bb8fc47baf0297ecb80 /examples/boot/bootloader/stm32/Cargo.toml
parent84628d36cf743193cbf0e7d47ef1cfa9fb590890 (diff)
Move bootloader main to examples
This should remove some confusion around embassy-boot-* being a library vs. a binary. The binary is now an example bootloader instead.
Diffstat (limited to 'examples/boot/bootloader/stm32/Cargo.toml')
-rw-r--r--examples/boot/bootloader/stm32/Cargo.toml57
1 files changed, 57 insertions, 0 deletions
diff --git a/examples/boot/bootloader/stm32/Cargo.toml b/examples/boot/bootloader/stm32/Cargo.toml
new file mode 100644
index 000000000..b99a8fbcd
--- /dev/null
+++ b/examples/boot/bootloader/stm32/Cargo.toml
@@ -0,0 +1,57 @@
1[package]
2edition = "2021"
3name = "stm32-bootloader-example"
4version = "0.1.0"
5description = "Example bootloader for STM32 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-stm32 = { path = "../../../../embassy-stm32", default-features = false, features = ["nightly"] }
13embassy-boot-stm32 = { path = "../../../../embassy-boot/stm32", default-features = false }
14cortex-m = { version = "0.7" }
15cortex-m-rt = { version = "0.7" }
16embedded-storage = "0.3.0"
17embedded-storage-async = "0.3.0"
18cfg-if = "1.0.0"
19
20[features]
21defmt = [
22 "dep:defmt",
23 "embassy-boot-stm32/defmt",
24 "embassy-stm32/defmt",
25]
26debug = ["defmt-rtt"]
27
28[profile.dev]
29debug = 2
30debug-assertions = true
31incremental = false
32opt-level = 'z'
33overflow-checks = true
34
35[profile.release]
36codegen-units = 1
37debug = 2
38debug-assertions = false
39incremental = false
40lto = 'fat'
41opt-level = 'z'
42overflow-checks = false
43
44# do not optimize proc-macro crates = faster builds from scratch
45[profile.dev.build-override]
46codegen-units = 8
47debug = false
48debug-assertions = false
49opt-level = 0
50overflow-checks = false
51
52[profile.release.build-override]
53codegen-units = 8
54debug = false
55debug-assertions = false
56opt-level = 0
57overflow-checks = false