Skip to content

Commit afe9d9d

Browse files
committed
Remove dummy, wasm-bindgen, and stdweb functionality
This temorarliy breaks wasm32-unknown-unknow
1 parent 5eeb89c commit afe9d9d

File tree

2 files changed

+3
-23
lines changed

2 files changed

+3
-23
lines changed

Cargo.toml

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -22,22 +22,15 @@ cfg-if = "0.1"
2222
compiler_builtins = { version = "0.1", optional = true }
2323
core = { version = "1.0", optional = true, package = "rustc-std-workspace-core" }
2424

25-
[target.'cfg(any(unix, target_os = "redox"))'.dependencies]
25+
[target.'cfg(unix)'.dependencies]
2626
libc = { version = "0.2.62", default-features = false }
2727

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 = []
33+
# Feature to enable custom RNG implementations
34+
custom = []
4035
# Unstable feature to support being a libstd dependency
4136
rustc-dep-of-std = ["compiler_builtins", "core"]
42-
# Unstable feature for testing
43-
test-in-browser = ["wasm-bindgen"]

src/lib.rs

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -230,19 +230,6 @@ cfg_if! {
230230
target_env = "sgx",
231231
)))] {
232232
#[path = "rdrand.rs"] mod imp;
233-
} else if #[cfg(all(target_arch = "wasm32", target_os = "unknown"))] {
234-
cfg_if! {
235-
if #[cfg(feature = "wasm-bindgen")] {
236-
#[path = "wasm32_bindgen.rs"] mod imp;
237-
} else if #[cfg(feature = "stdweb")] {
238-
#[path = "wasm32_stdweb.rs"] mod imp;
239-
} else {
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-
");
244-
}
245-
}
246233
} else {
247234
compile_error!("\
248235
target is not supported, for more information see: \

0 commit comments

Comments
 (0)