File tree 7 files changed +9
-10
lines changed
7 files changed +9
-10
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ matrix:
47
47
# Cargo has errors with sub-commands so ignore updating for now:
48
48
- cargo --list | egrep "^\s*web$" -q || cargo install cargo-web
49
49
script :
50
- - cargo web test --target wasm32-unknown-unknown --nodejs --features=wasm- stdweb
50
+ - cargo web test --target wasm32-unknown-unknown --nodejs --features=stdweb
51
51
52
52
# Trust cross-built/emulated targets. We must repeat all non-default values.
53
53
- rust : stable
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ You may also find the [Update Guide](UPDATING.md) useful.
17
17
- Deprecate ` rand_derive ` . (#256 )
18
18
- Add ` log ` feature. Logging is now available in ` JitterRng ` , ` OsRng ` , ` EntropyRng ` and ` ReseedingRng ` . (#246 )
19
19
- 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 )
21
21
22
22
### ` Rng ` trait
23
23
- Split ` Rng ` in ` RngCore ` and ` Rng ` extension trait.
@@ -69,7 +69,7 @@ You may also find the [Update Guide](UPDATING.md) useful.
69
69
### Platform support and ` OsRng `
70
70
- Add support for CloudABI. (#224 )
71
71
- 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 )
73
73
- On systems that do not have a syscall interface, only keep a single file descriptor open for ` OsRng ` . (#239 )
74
74
- Better error handling and reporting in ` OsRng ` (using new error type). (#225 )
75
75
- ` OsRng ` now uses non-blocking when available. (#225 )
Original file line number Diff line number Diff line change @@ -23,7 +23,6 @@ alloc = ["rand_core/alloc"] # enables Vec and Box support without std
23
23
i128_support = [] # enables i128 and u128 support
24
24
25
25
serde-1 = [" serde" , " serde_derive" ]
26
- wasm-stdweb = [" stdweb" ]
27
26
28
27
29
28
[target .'cfg(unix)' .dependencies ]
Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ optional features are available:
88
88
- ` log ` enables some logging via the ` log ` crate
89
89
- ` nightly ` enables all unstable features (` i128_support ` )
90
90
- ` 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.
92
92
- ` std ` enabled by default; by setting "default-features = false" ` no_std `
93
93
mode is activated; this removes features depending on ` std ` functionality:
94
94
- ` OsRng ` is entirely unavailable
Original file line number Diff line number Diff line change 179
179
#![ cfg_attr( not( feature="std" ) , no_std) ]
180
180
#![ cfg_attr( all( feature="alloc" , not( feature="std" ) ) , feature( alloc) ) ]
181
181
#![ 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" ) ]
183
183
184
184
#[ cfg( feature="std" ) ] extern crate std as core;
185
185
#[ cfg( all( feature = "alloc" , not( feature="std" ) ) ) ] extern crate alloc;
188
188
#[ cfg( feature="serde-1" ) ] extern crate serde;
189
189
#[ cfg( feature="serde-1" ) ] #[ macro_use] extern crate serde_derive;
190
190
191
- #[ cfg( feature = "wasm- stdweb" ) ]
191
+ #[ cfg( feature = "stdweb" ) ]
192
192
#[ macro_use]
193
193
extern crate stdweb;
194
194
Original file line number Diff line number Diff line change @@ -615,7 +615,7 @@ mod imp {
615
615
616
616
#[ cfg( all( target_arch = "wasm32" ,
617
617
not( target_os = "emscripten" ) ,
618
- not( feature = "wasm- stdweb" ) ) ) ]
618
+ not( feature = "stdweb" ) ) ) ]
619
619
mod imp {
620
620
use { Error , ErrorKind } ;
621
621
@@ -637,7 +637,7 @@ mod imp {
637
637
638
638
#[ cfg( all( target_arch = "wasm32" ,
639
639
not( target_os = "emscripten" ) ,
640
- feature = "wasm- stdweb" ) ) ]
640
+ feature = "stdweb" ) ) ]
641
641
mod imp {
642
642
use std:: mem;
643
643
use stdweb:: unstable:: TryInto ;
Original file line number Diff line number Diff line change @@ -175,7 +175,7 @@ mod test {
175
175
176
176
#[ test]
177
177
#[ cfg( feature="std" ) ]
178
- #[ cfg( not( feature="wasm- stdweb" ) ) ]
178
+ #[ cfg( not( feature="stdweb" ) ) ]
179
179
fn test_thread_rng ( ) {
180
180
let mut r = :: thread_rng ( ) ;
181
181
r. gen :: < i32 > ( ) ;
You can’t perform that action at this time.
0 commit comments