summaryrefslogtreecommitdiff
path: root/Cargo.toml
diff options
context:
space:
mode:
authorDario Nieuwenhuis <dirbaio@dirbaio.net>2020-09-05 01:18:00 +0200
committerDario Nieuwenhuis <dirbaio@dirbaio.net>2020-09-05 01:18:00 +0200
commit840e130a80b36eb53029ca7f0c115ea4aa7d19e3 (patch)
tree1708cb7a314f284c938d9314f8f517ac56fc132e /Cargo.toml
parentace5776dcf6561ac8bbb25cc0a2ed6b373d581c5 (diff)
downloadnrf-softdevice-840e130a80b36eb53029ca7f0c115ea4aa7d19e3.zip
Add new nrf-softdevice crate, with just interrupts+flash for now.
Diffstat (limited to 'Cargo.toml')
-rw-r--r--Cargo.toml58
1 files changed, 58 insertions, 0 deletions
diff --git a/Cargo.toml b/Cargo.toml
new file mode 100644
index 0000000..128f2f1
--- /dev/null
+++ b/Cargo.toml
@@ -0,0 +1,58 @@
+cargo-features = ["resolver"]
+
+[workspace]
+resolver = "2"
+members = [
+ "nrf-softdevice",
+ "nrf-softdevice-mbr",
+ "nrf-softdevice-s112",
+ "nrf-softdevice-s113",
+ "nrf-softdevice-s122",
+ "nrf-softdevice-s132",
+ "nrf-softdevice-s140",
+
+ "async-flash",
+
+ "examples/flash",
+]
+
+[patch.crates-io]
+cortex-m = { git = "https://github.com/Dirbaio/cortex-m"}
+panic-probe = { git = "https://github.com/knurling-rs/probe-run", branch="main" }
+defmt-rtt = { git = "https://github.com/knurling-rs/defmt", branch="main" }
+defmt = { git = "https://github.com/knurling-rs/defmt", branch="main" }
+nrf52840-pac = { git = "https://github.com/Dirbaio/nrf52840-pac" }
+static-executor = { git = "https://github.com/Dirbaio/static-executor" }
+static-executor-cortex-m = { git = "https://github.com/Dirbaio/static-executor" }
+
+[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 = 3
+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