Skip to content

Commit 5b5a9a4

Browse files
committed
Rename wasm-stdweb to stdweb
1 parent e3be669 commit 5b5a9a4

File tree

7 files changed

+9
-10
lines changed

7 files changed

+9
-10
lines changed

.travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ matrix:
4747
# Cargo has errors with sub-commands so ignore updating for now:
4848
- cargo --list | egrep "^\s*web$" -q || cargo install cargo-web
4949
script:
50-
- cargo web test --target wasm32-unknown-unknown --nodejs --features=wasm-stdweb
50+
- cargo web test --target wasm32-unknown-unknown --nodejs --features=stdweb
5151

5252
# Trust cross-built/emulated targets. We must repeat all non-default values.
5353
- rust: stable

CHANGELOG.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ You may also find the [Update Guide](UPDATING.md) useful.
1717
- Deprecate `rand_derive`. (#256)
1818
- Add `log` feature. Logging is now available in `JitterRng`, `OsRng`, `EntropyRng` and `ReseedingRng`. (#246)
1919
- Add `serde-1` feature for some PRNGs. (#189)
20-
- `wasm-stdweb` feature for `OsRng` support on WASM via stdweb. (#272, #336)
20+
- `stdweb` feature for `OsRng` support on WASM via stdweb. (#272, #336)
2121

2222
### `Rng` trait
2323
- Split `Rng` in `RngCore` and `Rng` extension trait.
@@ -69,7 +69,7 @@ You may also find the [Update Guide](UPDATING.md) useful.
6969
### Platform support and `OsRng`
7070
- Add support for CloudABI. (#224)
7171
- Remove support for NaCl. (#225)
72-
- WASM support for `OsRng` via stdweb, behind the `wasm-stdweb` feature. (#272, #336)
72+
- WASM support for `OsRng` via stdweb, behind the `stdweb` feature. (#272, #336)
7373
- On systems that do not have a syscall interface, only keep a single file descriptor open for `OsRng`. (#239)
7474
- Better error handling and reporting in `OsRng` (using new error type). (#225)
7575
- `OsRng` now uses non-blocking when available. (#225)

Cargo.toml

-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ alloc = ["rand_core/alloc"] # enables Vec and Box support without std
2323
i128_support = [] # enables i128 and u128 support
2424

2525
serde-1 = ["serde", "serde_derive"]
26-
wasm-stdweb = ["stdweb"]
2726

2827

2928
[target.'cfg(unix)'.dependencies]

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ optional features are available:
8888
- `log` enables some logging via the `log` crate
8989
- `nightly` enables all unstable features (`i128_support`)
9090
- `serde-1` enables serialisation for some types, via Serde version 1
91-
- `wasm-stdweb` enables support for `OsRng` on WASM via stdweb.
91+
- `stdweb` enables support for `OsRng` on WASM via stdweb.
9292
- `std` enabled by default; by setting "default-features = false" `no_std`
9393
mode is activated; this removes features depending on `std` functionality:
9494
- `OsRng` is entirely unavailable

src/lib.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@
179179
#![cfg_attr(not(feature="std"), no_std)]
180180
#![cfg_attr(all(feature="alloc", not(feature="std")), feature(alloc))]
181181
#![cfg_attr(feature = "i128_support", feature(i128_type, i128))]
182-
#![cfg_attr(feature = "wasm-stdweb", recursion_limit="128")]
182+
#![cfg_attr(feature = "stdweb", recursion_limit="128")]
183183

184184
#[cfg(feature="std")] extern crate std as core;
185185
#[cfg(all(feature = "alloc", not(feature="std")))] extern crate alloc;
@@ -188,7 +188,7 @@
188188
#[cfg(feature="serde-1")] extern crate serde;
189189
#[cfg(feature="serde-1")] #[macro_use] extern crate serde_derive;
190190

191-
#[cfg(feature = "wasm-stdweb")]
191+
#[cfg(feature = "stdweb")]
192192
#[macro_use]
193193
extern crate stdweb;
194194

src/os.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -615,7 +615,7 @@ mod imp {
615615

616616
#[cfg(all(target_arch = "wasm32",
617617
not(target_os = "emscripten"),
618-
not(feature = "wasm-stdweb")))]
618+
not(feature = "stdweb")))]
619619
mod imp {
620620
use {Error, ErrorKind};
621621

@@ -637,7 +637,7 @@ mod imp {
637637

638638
#[cfg(all(target_arch = "wasm32",
639639
not(target_os = "emscripten"),
640-
feature = "wasm-stdweb"))]
640+
feature = "stdweb"))]
641641
mod imp {
642642
use std::mem;
643643
use stdweb::unstable::TryInto;

src/thread_rng.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ mod test {
175175

176176
#[test]
177177
#[cfg(feature="std")]
178-
#[cfg(not(feature="wasm-stdweb"))]
178+
#[cfg(not(feature="stdweb"))]
179179
fn test_thread_rng() {
180180
let mut r = ::thread_rng();
181181
r.gen::<i32>();

0 commit comments

Comments
 (0)