Commit deac126 1 parent e9a75ea commit deac126 Copy full SHA for deac126
File tree 4 files changed +4
-25
lines changed
4 files changed +4
-25
lines changed Original file line number Diff line number Diff line change @@ -37,8 +37,6 @@ wasm-bindgen-test = "0.2"
37
37
38
38
[features ]
39
39
std = []
40
- # Enables dummy implementation for unsupported targets
41
- dummy = []
42
40
# Unstable feature to support being a libstd dependency
43
41
rustc-dep-of-std = [" compiler_builtins" , " core" ]
44
42
# Unstable feature for testing
Original file line number Diff line number Diff line change @@ -58,8 +58,6 @@ a compilation error. If you want to build an application which uses `getrandom`
58
58
for such target, you can either:
59
59
- Use [ ` [replace] ` ] [ replace ] or [ ` [patch] ` ] [ patch ] section in your ` Cargo.toml `
60
60
to switch to a custom implementation with a support of your target.
61
- - Enable the ` dummy ` feature to have getrandom use an implementation that always
62
- fails at run-time on unsupported targets.
63
61
64
62
[ replace ] : https://doc.rust-lang.org/cargo/reference/manifest.html#the-replace-section
65
63
[ patch ] : https://doc.rust-lang.org/cargo/reference/manifest.html#the-patch-section
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 43
43
//! for such target, you can either:
44
44
//! - Use [`[replace]`][replace] or [`[patch]`][patch] section in your `Cargo.toml`
45
45
//! to switch to a custom implementation with a support of your target.
46
- //! - Enable the `dummy` feature to have getrandom use an implementation that always
47
- //! fails at run-time on unsupported targets.
48
46
//!
49
47
//! [replace]: https://doc.rust-lang.org/cargo/reference/manifest.html#the-replace-section
50
48
//! [patch]: https://doc.rust-lang.org/cargo/reference/manifest.html#the-patch-section
@@ -239,13 +237,12 @@ cfg_if! {
239
237
} else if #[ cfg( feature = "stdweb" ) ] {
240
238
#[ path = "wasm32_stdweb.rs" ] mod imp;
241
239
} else {
242
- // Always have an implementation for wasm32-unknown-unknown.
243
- // See https://github.com/rust-random/getrandom/issues/87
244
- #[ path = "dummy.rs" ] mod imp;
240
+ compile_error!( "\
241
+ Enable crate features to use the wasm32-unknown-unknown target, see: \
242
+ https://docs.rs/getrandom/#support-for-webassembly-and-asmjs\
243
+ ") ;
245
244
}
246
245
}
247
- } else if #[ cfg( feature = "dummy" ) ] {
248
- #[ path = "dummy.rs" ] mod imp;
249
246
} else {
250
247
compile_error!( "\
251
248
target is not supported, for more information see: \
You can’t perform that action at this time.
0 commit comments