Skip to content

Commit e731138

Browse files
committed
Remove built-in support for wasm32-unknown-unknown
1 parent 92a353f commit e731138

File tree

2 files changed

+0
-23
lines changed

2 files changed

+0
-23
lines changed

Cargo.toml

-9
Original file line numberDiff line numberDiff line change
@@ -28,21 +28,12 @@ libc = { version = "0.2.64", default-features = false }
2828
[target.'cfg(target_os = "wasi")'.dependencies]
2929
wasi = "0.7"
3030

31-
[target.wasm32-unknown-unknown.dependencies]
32-
wasm-bindgen = { version = "0.2.29", optional = true }
33-
stdweb = { version = "0.4.18", optional = true }
34-
35-
[target.wasm32-unknown-unknown.dev-dependencies]
36-
wasm-bindgen-test = "0.2"
37-
3831
[features]
3932
std = []
4033
# Feature to enable custom RNG implementations
4134
custom = []
4235
# Unstable feature to support being a libstd dependency
4336
rustc-dep-of-std = ["compiler_builtins", "core"]
44-
# Unstable feature for testing
45-
test-in-browser = ["wasm-bindgen"]
4637

4738
[package.metadata.docs.rs]
4839
features = ["std", "custom"]

src/lib.rs

-14
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,6 @@
126126
html_root_url = "https://rust-random.github.io/rand/"
127127
)]
128128
#![no_std]
129-
#![cfg_attr(feature = "stdweb", recursion_limit = "128")]
130129
#![warn(rust_2018_idioms, unused_lifetimes, missing_docs)]
131130

132131
#[macro_use]
@@ -212,19 +211,6 @@ cfg_if! {
212211
target_env = "sgx",
213212
)))] {
214213
#[path = "rdrand.rs"] mod imp;
215-
} else if #[cfg(all(target_arch = "wasm32", target_os = "unknown"))] {
216-
cfg_if! {
217-
if #[cfg(feature = "wasm-bindgen")] {
218-
#[path = "wasm32_bindgen.rs"] mod imp;
219-
} else if #[cfg(feature = "stdweb")] {
220-
#[path = "wasm32_stdweb.rs"] mod imp;
221-
} else {
222-
compile_error!("\
223-
Enable crate features to use the wasm32-unknown-unknown target, see: \
224-
https://docs.rs/getrandom/#support-for-webassembly-and-asmjs\
225-
");
226-
}
227-
}
228214
} else if #[cfg(feature = "custom")] {
229215
use custom as imp;
230216
} else {

0 commit comments

Comments
 (0)