Skip to content

Commit

Permalink
Merge pull request #1153 from rozbb/propagate-std-getrandom
Browse files Browse the repository at this point in the history
Propagate std and getrandom features
  • Loading branch information
dhardy committed Sep 13, 2021
2 parents e359b27 + cc13807 commit ceb25f8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
3 changes: 3 additions & 0 deletions rand_chacha/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]
- Made `rand_chacha` propagate the `std` feature down to `rand_core`

## [0.3.1] - 2021-06-09
- add getters corresponding to existing setters: `get_seed`, `get_stream` (#1124)
- add serde support, gated by the `serde1` feature (#1124)
Expand Down
2 changes: 1 addition & 1 deletion rand_chacha/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@ serde_json = "1.0"

[features]
default = ["std"]
std = ["ppv-lite86/std"]
std = ["ppv-lite86/std", "rand_core/std"]
simd = [] # deprecated
serde1 = ["serde"]
3 changes: 2 additions & 1 deletion rand_chacha/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ Links:

`rand_chacha` is `no_std` compatible when disabling default features; the `std`
feature can be explicitly required to re-enable `std` support. Using `std`
allows detection of CPU features and thus better optimisation.
allows detection of CPU features and thus better optimisation. Using `std`
also enables `getrandom` functionality, such as `ChaCha20Rng::from_entropy()`.


# License
Expand Down

0 comments on commit ceb25f8

Please sign in to comment.