Use target_family = "wasm"
This commit is contained in:
@@ -40,8 +40,7 @@ cfg_if::cfg_if! {
|
||||
if #[cfg(any(target_os = "l4re",
|
||||
target_os = "hermit",
|
||||
feature = "restricted-std",
|
||||
all(target_arch = "wasm32", not(target_os = "emscripten")),
|
||||
all(target_arch = "wasm64", not(target_os = "emscripten")),
|
||||
all(target_family = "wasm", not(target_os = "emscripten")),
|
||||
all(target_vendor = "fortanix", target_env = "sgx")))] {
|
||||
pub use crate::sys::net;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user