aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Daniel Egger <daniel@eggers-club.de> 2018-09-06 22:46:10 +0200
committerGravatar Daniel Egger <daniel@eggers-club.de> 2018-09-07 21:23:53 +0200
commit04ef312936e4a799f877de0fc46a5c7bb2a63307 (patch)
treec040844a5eafad4e1ae29818e486352697e57c02
parent9cb792ed7b6b45071080816d383296491c57202f (diff)
downloadcortex-m-04ef312936e4a799f877de0fc46a5c7bb2a63307.tar.gz
cortex-m-04ef312936e4a799f877de0fc46a5c7bb2a63307.tar.zst
cortex-m-04ef312936e4a799f877de0fc46a5c7bb2a63307.zip
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 <daniel@eggers-club.de>
-rw-r--r--cortex-m-rt/macros/Cargo.toml5
1 files changed, 4 insertions, 1 deletions
diff --git a/cortex-m-rt/macros/Cargo.toml b/cortex-m-rt/macros/Cargo.toml
index 21a6795..48c96d0 100644
--- a/cortex-m-rt/macros/Cargo.toml
+++ b/cortex-m-rt/macros/Cargo.toml
@@ -14,12 +14,15 @@ proc-macro = true
[dependencies]
quote = "0.6.6"
-rand = "0.5.5"
proc-macro2 = "0.4.15"
[dependencies.syn]
features = ["extra-traits", "full"]
version = "0.14.8"
+[dependencies.rand]
+version = "0.5.5"
+default-features = false
+
[dev-dependencies]
cortex-m-rt = { path = "..", version = "0.6.0" }