Add std impl for rand

This commit is contained in:
Dario Nieuwenhuis
2020-12-14 00:36:29 +01:00
parent 1aae27270e
commit 80c504cd95
4 changed files with 23 additions and 2 deletions

View File

@ -5,7 +5,7 @@ authors = ["Dario Nieuwenhuis <dirbaio@dirbaio.net>"]
edition = "2018"
[features]
std = ["futures/std"]
std = ["futures/std", "rand_core"]
defmt-trace = []
defmt-debug = []
defmt-info = []
@ -16,6 +16,9 @@ defmt-error = []
defmt = { version = "0.1.3", optional = true }
log = { version = "0.4.11", optional = true }
# std-only
rand_core = { version = "0.5.1", optional = true, features = ["std"] }
cortex-m = "0.6.4"
futures = { version = "0.3.5", default-features = false }
pin-project = { version = "1.0.2", default-features = false }