Skip to content

Commit ca96671

Browse files
authored
Merge pull request #676 from dhardy/master
Fix Cargo features / dependencies
2 parents ec634c3 + 88f36aa commit ca96671

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@ A [separate changelog is kept for rand_core](rand_core/CHANGELOG.md).
99
You may also find the [Upgrade Guide](https://rust-random.github.io/book/update.html) useful.
1010

1111

12+
## [0.6.3] - 2019-01-04
13+
### Fixes
14+
- Make the `std` feature require the optional `rand_os` dependency (#675)
15+
- Re-export the optional WASM dependencies of `rand_os` from `rand` to avoid breakage (#674)
16+
1217
## [0.6.2] - 2019-01-04
1318
### Additions
1419
- Add `Default` for `ThreadRng` (#657)

Cargo.toml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "rand"
3-
version = "0.6.2"
3+
version = "0.6.3"
44
authors = ["The Rand Project Developers", "The Rust Project Developers"]
55
license = "MIT/Apache-2.0"
66
readme = "README.md"
@@ -22,11 +22,14 @@ appveyor = { repository = "rust-random/rand" }
2222
[features]
2323
default = ["std", "rand_os"] # without "std" rand uses libcore
2424
nightly = ["simd_support"] # enables all features requiring nightly rust
25-
std = ["rand_core/std", "alloc"]
25+
std = ["rand_core/std", "alloc", "rand_os"]
2626
alloc = ["rand_core/alloc"] # enables Vec and Box support (without std)
2727
i128_support = [] # enables i128 and u128 support
2828
simd_support = ["packed_simd"] # enables SIMD support
2929
serde1 = ["rand_core/serde1", "rand_isaac/serde1", "rand_xorshift/serde1"] # enables serialization for PRNGs
30+
# re-export optional WASM dependencies to avoid breakage:
31+
wasm-bindgen = ["rand_os/wasm-bindgen"]
32+
stdweb = ["rand_os/stdweb"]
3033

3134
[workspace]
3235
members = [

0 commit comments

Comments
 (0)