File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,12 @@ rustdoc-args = ["--generate-link-to-definition"]
2323default = [" std" ]
2424std = [" alloc" , " rand/std" ]
2525alloc = [" rand/alloc" ]
26+
27+ # Use std's floating-point arithmetic instead of libm.
28+ # Note that any other crate depending on `num-traits`'s `std`
29+ # feature (default-enabled) will have the same effect.
2630std_math = [" num-traits/std" ]
31+
2732serde1 = [" serde" , " rand/serde1" ]
2833
2934[dependencies ]
Original file line number Diff line number Diff line change @@ -25,7 +25,8 @@ The floating point functions from `num_traits` and `libm` are used to support
2525` no_std ` environments and ensure reproducibility. If the floating point
2626functions from ` std ` are preferred, which may provide better accuracy and
2727performance but may produce different random values, the ` std_math ` feature
28- can be enabled.
28+ can be enabled. (Note that any other crate depending on ` num-traits ` with the
29+ ` std ` feature (default-enabled) will have the same effect.)
2930
3031## Crate features
3132
You can’t perform that action at this time.
0 commit comments