mirror of
https://github.com/openharmony/third_party_rust_os_str_bytes.git
synced 2026-07-19 17:13:33 -04:00
Merge pull request #5 from sburton84/master
Add support for SGX (using the x86_64-fortanix-unknown-sgx target)
This commit is contained in:
@@ -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"))]
|
||||
|
||||
@@ -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)]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user