diff options
Diffstat (limited to 'embassy-boot-stm32/Cargo.toml')
| -rw-r--r-- | embassy-boot-stm32/Cargo.toml | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/embassy-boot-stm32/Cargo.toml b/embassy-boot-stm32/Cargo.toml new file mode 100644 index 000000000..f4e31bae8 --- /dev/null +++ b/embassy-boot-stm32/Cargo.toml | |||
| @@ -0,0 +1,70 @@ | |||
| 1 | [package] | ||
| 2 | edition = "2021" | ||
| 3 | name = "embassy-boot-stm32" | ||
| 4 | version = "0.1.0" | ||
| 5 | description = "Bootloader lib for STM32 chips" | ||
| 6 | license = "MIT OR Apache-2.0" | ||
| 7 | repository = "https://github.com/embassy-rs/embassy" | ||
| 8 | categories = [ | ||
| 9 | "embedded", | ||
| 10 | "no-std", | ||
| 11 | "asynchronous", | ||
| 12 | ] | ||
| 13 | |||
| 14 | [package.metadata.embassy_docs] | ||
| 15 | src_base = "https://github.com/embassy-rs/embassy/blob/embassy-boot-nrf-v$VERSION/embassy-boot-stm32/src/" | ||
| 16 | src_base_git = "https://github.com/embassy-rs/embassy/blob/$COMMIT/embassy-boot-stm32/src/" | ||
| 17 | features = ["embassy-stm32/stm32f429zi"] | ||
| 18 | target = "thumbv7em-none-eabi" | ||
| 19 | |||
| 20 | [lib] | ||
| 21 | |||
| 22 | [dependencies] | ||
| 23 | defmt = { version = "0.3", optional = true } | ||
| 24 | defmt-rtt = { version = "0.4", optional = true } | ||
| 25 | log = { version = "0.4", optional = true } | ||
| 26 | |||
| 27 | embassy-sync = { version = "0.5.0", path = "../embassy-sync" } | ||
| 28 | embassy-stm32 = { version = "0.1.0", path = "../embassy-stm32", default-features = false } | ||
| 29 | embassy-boot = { version = "0.1.0", path = "../embassy-boot" } | ||
| 30 | cortex-m = { version = "0.7.6" } | ||
| 31 | cortex-m-rt = { version = "0.7" } | ||
| 32 | embedded-storage = "0.3.1" | ||
| 33 | embedded-storage-async = { version = "0.4.1" } | ||
| 34 | cfg-if = "1.0.0" | ||
| 35 | |||
| 36 | [features] | ||
| 37 | defmt = ["dep:defmt", "embassy-boot/defmt", "embassy-stm32/defmt"] | ||
| 38 | log = ["dep:log", "embassy-boot/log", "embassy-stm32/log"] | ||
| 39 | debug = ["defmt-rtt"] | ||
| 40 | |||
| 41 | [profile.dev] | ||
| 42 | debug = 2 | ||
| 43 | debug-assertions = true | ||
| 44 | incremental = false | ||
| 45 | opt-level = 'z' | ||
| 46 | overflow-checks = true | ||
| 47 | |||
| 48 | [profile.release] | ||
| 49 | codegen-units = 1 | ||
| 50 | debug = 2 | ||
| 51 | debug-assertions = false | ||
| 52 | incremental = false | ||
| 53 | lto = 'fat' | ||
| 54 | opt-level = 'z' | ||
| 55 | overflow-checks = false | ||
| 56 | |||
| 57 | # do not optimize proc-macro crates = faster builds from scratch | ||
| 58 | [profile.dev.build-override] | ||
| 59 | codegen-units = 8 | ||
| 60 | debug = false | ||
| 61 | debug-assertions = false | ||
| 62 | opt-level = 0 | ||
| 63 | overflow-checks = false | ||
| 64 | |||
| 65 | [profile.release.build-override] | ||
| 66 | codegen-units = 8 | ||
| 67 | debug = false | ||
| 68 | debug-assertions = false | ||
| 69 | opt-level = 0 | ||
| 70 | overflow-checks = false | ||
