1
Fork 0

Introduce restricted-std feature.

This commit is contained in:
Eric Huss 2020-05-31 18:09:25 -07:00
parent 9e58908e27
commit 6e9a1de0d1
35 changed files with 266 additions and 109 deletions

View file

@ -57,6 +57,7 @@ pub mod mutex;
target_os = "cloudabi",
target_os = "hermit",
target_arch = "wasm32",
feature = "restricted-std",
all(target_vendor = "fortanix", target_env = "sgx")))]
pub mod os_str_bytes;
pub mod poison;
@ -74,6 +75,7 @@ cfg_if::cfg_if! {
if #[cfg(any(target_os = "cloudabi",
target_os = "l4re",
target_os = "hermit",
feature = "restricted-std",
all(target_arch = "wasm32", not(target_os = "emscripten")),
all(target_vendor = "fortanix", target_env = "sgx")))] {
pub use crate::sys::net;