Skip to content

Commit

Permalink
Merge pull request #845 from dhardy/chacha
Browse files Browse the repository at this point in the history
Prepare rand_chacha 0.2.1
  • Loading branch information
dhardy committed Jul 25, 2019
2 parents e6309d8 + 44939f1 commit fe44b39
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Expand Up @@ -74,7 +74,7 @@ libc = { version = "0.2.22", default-features = false }
# Emscripten does not support 128-bit integers, which are used by ChaCha code.
# We work around this by using a different RNG.
[target.'cfg(not(target_os = "emscripten"))'.dependencies]
rand_chacha = { path = "rand_chacha", version = "0.2" }
rand_chacha = { path = "rand_chacha", version = "0.2.1" }
[target.'cfg(target_os = "emscripten")'.dependencies]
rand_hc = { path = "rand_hc", version = "0.2" }

Expand Down
3 changes: 3 additions & 0 deletions rand_chacha/CHANGELOG.md
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).

## [0.2.1] - 2019-07-22
- Force enable the `simd` feature of `c2-chacha` (#845)

## [0.2.0] - 2019-06-06
- Rewrite based on the much faster `c2-chacha` crate (#789)

Expand Down
6 changes: 3 additions & 3 deletions rand_chacha/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "rand_chacha"
version = "0.2.0"
version = "0.2.1"
authors = ["The Rand Project Developers", "The Rust Project Developers", "The CryptoCorrosion Contributors"]
license = "MIT/Apache-2.0"
readme = "README.md"
Expand All @@ -20,9 +20,9 @@ appveyor = { repository = "rust-random/rand" }

[dependencies]
rand_core = { path = "../rand_core", version = "0.5" }
c2-chacha = { version = "0.2.2", default-features = false }
c2-chacha = { version = "0.2.2", default-features = false, features = ["simd"] }

[features]
default = ["std", "simd"]
std = ["c2-chacha/std"]
simd = ["c2-chacha/simd"]
simd = [] # deprecated
5 changes: 3 additions & 2 deletions rand_chacha/README.md
Expand Up @@ -35,8 +35,9 @@ Links:

## Crate Features

`rand_chacha` is `no_std` compatible. It does not require any functionality
outside of the `core` lib, thus there are no features to configure.
`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.


# License
Expand Down

0 comments on commit fe44b39

Please sign in to comment.