2021-03-29 21:46:51 +02:00
|
|
|
# This file is a template for a Cargo workspace for developer convenience.
|
|
|
|
#
|
|
|
|
# Since Cargo resolves all features for all crates in the workspace together,
|
|
|
|
# it is not possible to have a workspace with all the crates together, since they
|
|
|
|
# enable incompatible features. For example, nrf crates enable embassy-macros/nrf
|
|
|
|
# and stm32 crates enable embassy-macros/stm32. embassy-macros doesn't support having
|
|
|
|
# both of these features on at the same time, because it makes no sense.
|
|
|
|
#
|
|
|
|
# Instead, we provide this template so you can enable only the crates you're going to
|
|
|
|
# work on. This makes eg rust-analyzer check-on-save and autocomplete work, but only
|
|
|
|
# in these crates, without any feature conflict.
|
|
|
|
#
|
|
|
|
# Copy this file to `Cargo.toml` and uncomment one group of crates below.
|
|
|
|
#
|
|
|
|
# `/Cargo.toml` is already in .gitignore, so you don't commit it accidentally.
|
|
|
|
|
|
|
|
[workspace]
|
2021-06-08 01:55:50 +02:00
|
|
|
resolver = "2"
|
|
|
|
|
2021-03-29 21:46:51 +02:00
|
|
|
members = [
|
|
|
|
"embassy",
|
|
|
|
"embassy-traits",
|
|
|
|
"embassy-macros",
|
2021-07-29 13:44:51 +02:00
|
|
|
"embassy-hal-common",
|
2021-07-14 21:58:07 +02:00
|
|
|
"embassy-net",
|
2021-03-29 21:46:51 +02:00
|
|
|
|
|
|
|
# Uncomment ONLY ONE of the groups below.
|
|
|
|
|
|
|
|
# nRF
|
|
|
|
#"embassy-nrf",
|
2021-06-02 01:30:07 +02:00
|
|
|
#"examples/nrf",
|
2021-03-29 21:46:51 +02:00
|
|
|
|
|
|
|
# stm32
|
|
|
|
#"embassy-stm32",
|
2021-05-25 04:17:24 +02:00
|
|
|
#"stm32-metapac",
|
2021-06-02 01:30:07 +02:00
|
|
|
# uncomment ONLY ONE example crate.
|
2021-10-26 17:30:31 +02:00
|
|
|
#"examples/stm32f0",
|
|
|
|
#"examples/stm32f1",
|
2021-06-02 01:30:07 +02:00
|
|
|
#"examples/stm32f4",
|
2021-10-26 17:30:31 +02:00
|
|
|
#"examples/stm32f7",
|
|
|
|
#"examples/stm32g0",
|
2021-06-09 23:12:14 +02:00
|
|
|
#"examples/stm32h7",
|
|
|
|
#"examples/stm32l0",
|
2021-10-26 17:30:31 +02:00
|
|
|
#"examples/stm32l1",
|
2021-07-14 22:00:49 +02:00
|
|
|
#"examples/stm32l4",
|
2021-06-11 22:58:09 +02:00
|
|
|
#"examples/stm32wb55",
|
2021-10-26 17:30:31 +02:00
|
|
|
#"examples/stm32wl55",
|
2021-03-29 21:46:51 +02:00
|
|
|
|
|
|
|
# rp2040
|
|
|
|
#"embassy-rp",
|
2021-06-25 03:38:03 +02:00
|
|
|
#"examples/rp",
|
2021-03-29 21:46:51 +02:00
|
|
|
|
|
|
|
# std
|
2021-06-02 01:30:07 +02:00
|
|
|
#"examples/std",
|
2021-03-29 21:46:51 +02:00
|
|
|
]
|
|
|
|
|
2021-07-13 05:47:10 +02:00
|
|
|
exclude = [
|
|
|
|
# This is only built as a build-dependency, for the host. It shouldn't
|
|
|
|
# get built for the target.
|
|
|
|
"stm32-metapac-gen"
|
|
|
|
]
|
|
|
|
|
2021-03-29 21:46:51 +02:00
|
|
|
[profile.dev]
|
|
|
|
codegen-units = 1
|
|
|
|
debug = 2
|
|
|
|
debug-assertions = true
|
|
|
|
incremental = false
|
|
|
|
opt-level = 3
|
|
|
|
overflow-checks = true
|
|
|
|
|
|
|
|
[profile.release]
|
|
|
|
codegen-units = 1
|
|
|
|
debug = 2
|
|
|
|
debug-assertions = false
|
|
|
|
incremental = false
|
|
|
|
lto = "fat"
|
|
|
|
opt-level = 's'
|
|
|
|
overflow-checks = false
|
|
|
|
|
|
|
|
# do not optimize proc-macro crates = faster builds from scratch
|
|
|
|
[profile.dev.build-override]
|
|
|
|
codegen-units = 8
|
|
|
|
debug = false
|
|
|
|
debug-assertions = false
|
|
|
|
opt-level = 0
|
|
|
|
overflow-checks = false
|
|
|
|
|
|
|
|
[profile.release.build-override]
|
|
|
|
codegen-units = 8
|
|
|
|
debug = false
|
|
|
|
debug-assertions = false
|
|
|
|
opt-level = 0
|
|
|
|
overflow-checks = false
|