diff --git a/CHANGELOG.md b/CHANGELOG.md index 205cf4c14b..27cd768aa9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -20,6 +20,7 @@ You may also find the [Upgrade Guide](https://rust-random.github.io/book/update. - Fix portability of `rand::distributions::Slice` (#1469) - Rename `rand::distributions` to `rand::distr` (#1470) - The `serde1` feature has been renamed `serde` (#1477) +- Remove implicit feature `rand_chacha`. This is enabled by `std_rng`. (#1473) ## [0.9.0-alpha.1] - 2024-03-18 - Add the `Slice::num_choices` method to the Slice distribution (#1402) diff --git a/Cargo.toml b/Cargo.toml index 9924c00723..289616c6d5 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -46,7 +46,7 @@ getrandom = ["rand_core/getrandom"] simd_support = ["zerocopy/simd-nightly"] # Option (enabled by default): enable StdRng -std_rng = ["rand_chacha"] +std_rng = ["dep:rand_chacha"] # Option: enable SmallRng small_rng = [] @@ -56,6 +56,9 @@ small_rng = [] # Note: enabling this option is expected to affect reproducibility of results. unbiased = [] +# Option: enable logging +log = ["dep:log"] + [workspace] members = [ "rand_core", diff --git a/rand_core/Cargo.toml b/rand_core/Cargo.toml index dc4084d69a..48d5c51070 100644 --- a/rand_core/Cargo.toml +++ b/rand_core/Cargo.toml @@ -27,6 +27,7 @@ all-features = true [features] std = ["alloc", "getrandom?/std"] alloc = [] # enables Vec and Box support without std +getrandom = ["dep:getrandom"] serde = ["dep:serde"] # enables serde for BlockRng wrapper [dependencies] diff --git a/rand_distr/Cargo.toml b/rand_distr/Cargo.toml index c3a717a846..d39ede192c 100644 --- a/rand_distr/Cargo.toml +++ b/rand_distr/Cargo.toml @@ -30,6 +30,7 @@ alloc = ["rand/alloc"] std_math = ["num-traits/std"] serde = ["dep:serde", "rand/serde"] +serde_with = ["dep:serde_with"] [dependencies] rand = { path = "..", version = "=0.9.0-alpha.1", default-features = false }