Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 4057b91

Browse files
committedJan 9, 2020
Remove built-in support for wasm32-unknown-unknown
1 parent 9db790e commit 4057b91

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
@@ -27,21 +27,12 @@ libc = { version = "0.2.64", default-features = false }
2727
[target.'cfg(target_os = "wasi")'.dependencies]
2828
wasi = "0.9"
2929

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

4637
[package.metadata.docs.rs]
4738
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]
@@ -191,19 +190,6 @@ cfg_if! {
191190
target_env = "sgx",
192191
)))] {
193192
#[path = "rdrand.rs"] mod imp;
194-
} else if #[cfg(all(target_arch = "wasm32", target_os = "unknown"))] {
195-
cfg_if! {
196-
if #[cfg(feature = "wasm-bindgen")] {
197-
#[path = "wasm32_bindgen.rs"] mod imp;
198-
} else if #[cfg(feature = "stdweb")] {
199-
#[path = "wasm32_stdweb.rs"] mod imp;
200-
} else {
201-
compile_error!("\
202-
Enable crate features to use the wasm32-unknown-unknown target, see: \
203-
https://docs.rs/getrandom/#support-for-webassembly-and-asmjs\
204-
");
205-
}
206-
}
207193
} else if #[cfg(feature = "custom")] {
208194
use custom as imp;
209195
} else {

0 commit comments

Comments
 (0)
Please sign in to comment.