Skip to content

Commit d9e6461

Browse files
committed
Indicate that blocking does not support WASM
Breaking change but hopefully not a controversial one. Closes #52 Signed-off-by: John Nunley <[email protected]>
1 parent 81ec3dd commit d9e6461

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/lib.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,11 @@
8484
html_logo_url = "https://raw.githubusercontent.com/smol-rs/smol/master/assets/images/logo_fullsize_transparent.png"
8585
)]
8686

87+
#[cfg(target_family = "wasm")]
88+
compile_error! {
89+
"`blocking` does not support WebAssembly targets"
90+
}
91+
8792
use std::any::Any;
8893
use std::collections::VecDeque;
8994
use std::env;

0 commit comments

Comments
 (0)