forked from future-proof-iot/RIOT-rs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
87 lines (73 loc) · 2.88 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
[workspace]
members = [
"examples/*",
"src/*",
"src/lib/*",
"src/riot-rs",
"src/riot-rs-boards",
"src/riot-rs-boards/lm3s6965evb",
"src/riot-rs-boards/nrf52",
"src/riot-rs-boards/nrf52840dk",
"src/riot-rs-boards/nucleo-f401re",
"src/riot-rs-chips",
"src/riot-rs-macros"
]
exclude = ["src/lib"]
default-members = ["examples/hello-world"]
resolver = "2"
[workspace.package]
version = "0.1.0"
authors = ["Kaspar Schleiser <[email protected]>"]
edition = "2021"
repository = "https://github.com/future-proof-iot/riot-rs"
[workspace.dependencies]
cfg-if = { version = "1.0.0" }
cortex-m = { version = "0.7", default-features = false, features = [ "inline-asm" ] }
cortex-m-rt = { version = "0.7" }
cortex-m-semihosting = { version = "0.5" }
critical-section = { version = "1.1.2" }
embassy-executor = { version = "0.5", default-features = false }
embassy-net = { version = "0.4", default-features = false }
embassy-net-driver-channel = { version = "0.2.0", default-features = false }
embassy-nrf = { version = "0.1", default-features = false }
embassy-rp = { version = "0.1", default-features = false }
embassy-sync = { version = "0.5", default-features = false }
embassy-time = { version = "0.3", default-features = false }
embassy-usb = { version = "0.1", default-features = false }
linkme = { version = "0.3.21", features = ["used_linker"] }
riot-rs = { path = "src/riot-rs", default-features = false }
riot-rs-rt = { path = "src/riot-rs-rt" }
riot-rs-runqueue = { path = "src/riot-rs-runqueue" }
const_panic = { version = "0.2.8", default_features = false }
heapless = { version = "0.8.0", default-features = false }
konst = { version = "0.3.8", default_features = false }
ld-memory = { version = "0.2.9" }
static_cell = { version = "2.0.0", features = [ "nightly" ] }
[profile.dev]
incremental = false
codegen-units = 1
debug = true
lto = false
opt-level = 1
[profile.release]
incremental = false
codegen-units = 1
debug = true
lto = false
opt-level = "s"
[patch.crates-io]
# these are patched to work with critical-section
nrf51-pac = { git = "https://github.com/kaspar030/nrf-pacs", branch = "riot-rs" }
nrf52832-pac = { git = "https://github.com/kaspar030/nrf-pacs", branch = "riot-rs" }
nrf52840-pac = { git = "https://github.com/kaspar030/nrf-pacs", branch = "riot-rs" }
# riot-rs embassy fork
embassy-executor = { git = "https://github.com/kaspar030/embassy", branch = "for-riot-rs-140224" }
embassy-hal-internal = { git = "https://github.com/kaspar030/embassy", branch = "for-riot-rs-140224" }
embassy-nrf = { git = "https://github.com/kaspar030/embassy", branch = "for-riot-rs-140224" }
[workspace.lints.rust]
unsafe_op_in_unsafe_fn = "warn"
unused_must_use = "deny"
[workspace.lints.clippy]
# Clippy lints are documented here: https://rust-lang.github.io/rust-clippy/master/index.html
indexing_slicing = "warn"
missing_safety_doc = { level = "warn", check-private-items = true }