Cargo Features
[dependencies]
xmrs = { version = "0.9.9", default-features = false, features = ["std", "demo", "libm", "micromath", "import", "import_sid", "rand8", "rand16", "rand64"] }
- default = micromath
-
The
micromath
feature is set by default wheneverxmrs
is added without
somewhere in the dependency tree.default-features = false - std demo?
-
Enables std of bincode, num_enum, and serde
serde:
Provide impls for common standard library types like Vec<T> and HashMap<K, V>.
Requires a dependency on the Rust standard library. - demo = clap, import, std
- libm
-
math features
Enables libm of num-traits
libm wrapper
- micromath default
-
Enables micromath
- import demo? import_sid?
-
import features
Affects
xmrs::import
… - import_sid = import
-
Affects
import::sid
… - rand8
-
xorshift rng features (rand32 is always enabled)
Affects
xorshift::XorShift8
… - rand16
-
Affects
xorshift::XorShift16
… - rand64
-
Affects
xorshift::XorShift64
…
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.