Cargo Features
[dependencies]
fake-rand-test = { version = "0.6.4", default-features = false, features = ["nightly", "std", "alloc", "i128_support", "simd_support", "serde1", "wasm-bindgen", "stdweb", "log"] }
- default = rand_os, std
-
without "std" rand uses libcore
- nightly = simd_support
-
enables all features requiring nightly rust
- std default = alloc, rand_os
-
Enables std of rand_core ^0.3
Affects
deprecated::EntropyRng
,deprecated::ThreadRng
,deprecated::ReadRng
,uniform::UniformDuration
,utils::log_gamma
,utils::ziggurat
,fake-rand-test::read
,fake-rand-test::FromEntropy
,fake-rand-test::random
,adapter::read
… - alloc std
-
enables Vec and Box support (without std)
Enables alloc of rand_core ^0.3
Affects
seq::index
,seq::SliceRandom.choose_multiple
,seq::SliceRandom.choose_weighted
,seq::SliceRandom.choose_weighted_mut
,seq::IteratorRandom.choose_multiple
,seq::SliceChooseIter
,seq::sample_iter
,seq::sample_slice
,seq::sample_slice_ref
… - i128_support
-
enables i128 and u128 support
- simd_support nightly? = packed_simd
-
enables SIMD support
- serde1
-
enables serialization for PRNGs
Enables serde1 of rand_core ^0.3, rand_isaac ^0.1, and rand_xorshift ^0.1
rand_isaac:
only for deprecations and benches:
- wasm-bindgen
-
re-export optional WASM dependencies to avoid breakage:
Enables wasm-bindgen of rand_os ^0.1
- stdweb
-
Enables stdweb of rand_os ^0.1
Features from optional dependencies
In crates that don't use the dep:
syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.
- rand_os default std stdweb? wasm-bindgen?
-
Enables rand_os ^0.1
Affects
deprecated::OsRng
,fake-rand-test::os
,entropy::Os
… - log implicit feature
-
Enables log
log:
A lightweight logging facade for Rust
- packed_simd simd_support?