Skip to content

Commit 04ef312

Browse files
committed
Disable default-features on rand dependency to avoid std version
Due to the single dependency tree, the attempted use of a std version flips all depending crates to the std version as well which will not compile on no_std systems. Fixes #105 Signed-off-by: Daniel Egger <[email protected]>
1 parent 9cb792e commit 04ef312

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

cortex-m-rt/macros/Cargo.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,15 @@ proc-macro = true
1414

1515
[dependencies]
1616
quote = "0.6.6"
17-
rand = "0.5.5"
1817
proc-macro2 = "0.4.15"
1918

2019
[dependencies.syn]
2120
features = ["extra-traits", "full"]
2221
version = "0.14.8"
2322

23+
[dependencies.rand]
24+
version = "0.5.5"
25+
default-features = false
26+
2427
[dev-dependencies]
2528
cortex-m-rt = { path = "..", version = "0.6.0" }

0 commit comments

Comments
 (0)