Skip to content

Commit 6fbf58b

Browse files
committed
Add rand_core as an optional dependency
1 parent 59d5204 commit 6fbf58b

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

Cargo.lock

Lines changed: 8 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,12 @@ std = []
2323
# i.e. avoid unconditionally enabling it in library crates.
2424
wasm_js = ["dep:wasm-bindgen", "dep:js-sys"]
2525

26+
# Provide OsRng over rand_core
27+
rng = ["dep:rand_core"]
28+
2629
[dependencies]
2730
cfg-if = "1"
31+
rand_core = { version = "0.10.0-rc-2", optional = true }
2832

2933
# getrandom / linux_android_with_fallback
3034
[target.'cfg(all(any(target_os = "linux", target_os = "android"), not(any(all(target_os = "linux", target_env = ""), getrandom_backend = "custom", getrandom_backend = "linux_raw", getrandom_backend = "rdrand", getrandom_backend = "rndr"))))'.dependencies]

0 commit comments

Comments
 (0)