Merge pull request #5 from sburton84/master

Add support for SGX (using the x86_64-fortanix-unknown-sgx target)
This commit is contained in:
dylni
2021-05-13 17:45:10 -04:00
committed by GitHub
2 changed files with 4 additions and 0 deletions
+2
View File
@@ -4,6 +4,8 @@ use std::ffi::OsStr;
use std::ffi::OsString;
use std::result;
#[cfg(target_env = "sgx")]
use std::os::fortanix_sgx as os;
#[cfg(any(target_os = "hermit", target_os = "redox", unix))]
use std::os::unix as os;
#[cfg(any(target_env = "wasi", target_os = "wasi"))]
+2
View File
@@ -123,6 +123,8 @@
// https://github.com/rust-lang/docs.rs/issues/147#issuecomment-389544407
// https://github.com/dylni/os_str_bytes/issues/2
#![cfg_attr(os_str_bytes_docs_rs, feature(doc_cfg))]
// Nightly is also currently required for the SGX platform
#![cfg_attr(target_env = "sgx", feature(sgx_platform))]
#![forbid(unsafe_code)]
#![warn(unused_results)]