diff options
| author | Dario Nieuwenhuis <[email protected]> | 2020-09-22 18:03:43 +0200 |
|---|---|---|
| committer | Dario Nieuwenhuis <[email protected]> | 2020-09-22 18:03:43 +0200 |
| commit | 9a57deef9b531b8dae9d98a5accf5aeb128ab86d (patch) | |
| tree | b1e118334fc555167e72595dfb97982e5f9ca630 /Cargo.toml | |
First commit
Diffstat (limited to 'Cargo.toml')
| -rw-r--r-- | Cargo.toml | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/Cargo.toml b/Cargo.toml new file mode 100644 index 000000000..4515b020c --- /dev/null +++ b/Cargo.toml | |||
| @@ -0,0 +1,46 @@ | |||
| 1 | |||
| 2 | [workspace] | ||
| 3 | members = [ | ||
| 4 | "embassy", | ||
| 5 | "embassy-nrf", | ||
| 6 | "examples", | ||
| 7 | ] | ||
| 8 | |||
| 9 | [patch.crates-io] | ||
| 10 | panic-probe = { git = "https://github.com/knurling-rs/probe-run", branch="main" } | ||
| 11 | defmt-rtt = { git = "https://github.com/knurling-rs/defmt", branch="cursed-symbol-names-linkers-must-repent-for-their-sins" } | ||
| 12 | defmt = { git = "https://github.com/knurling-rs/defmt", branch="cursed-symbol-names-linkers-must-repent-for-their-sins" } | ||
| 13 | static-executor = { git = "https://github.com/Dirbaio/static-executor" } | ||
| 14 | static-executor-cortex-m = { git = "https://github.com/Dirbaio/static-executor" } | ||
| 15 | |||
| 16 | [profile.dev] | ||
| 17 | codegen-units = 1 | ||
| 18 | debug = 2 | ||
| 19 | debug-assertions = true | ||
| 20 | incremental = false | ||
| 21 | opt-level = 3 | ||
| 22 | overflow-checks = true | ||
| 23 | |||
| 24 | [profile.release] | ||
| 25 | codegen-units = 1 | ||
| 26 | debug = 2 | ||
| 27 | debug-assertions = false | ||
| 28 | incremental = false | ||
| 29 | lto = "fat" | ||
| 30 | opt-level = 3 | ||
| 31 | overflow-checks = false | ||
| 32 | |||
| 33 | # do not optimize proc-macro crates = faster builds from scratch | ||
| 34 | [profile.dev.build-override] | ||
| 35 | codegen-units = 8 | ||
| 36 | debug = false | ||
| 37 | debug-assertions = false | ||
| 38 | opt-level = 0 | ||
| 39 | overflow-checks = false | ||
| 40 | |||
| 41 | [profile.release.build-override] | ||
| 42 | codegen-units = 8 | ||
| 43 | debug = false | ||
| 44 | debug-assertions = false | ||
| 45 | opt-level = 0 | ||
| 46 | overflow-checks = false | ||
