Introduce restricted-std feature.
This commit is contained in:
parent
9e58908e27
commit
6e9a1de0d1
35 changed files with 266 additions and 109 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue