-
Notifications
You must be signed in to change notification settings - Fork 12.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add std::os::fortanix_sgx
module
#56978
Conversation
(rust_highfive has picked a reviewer for you, use r? to override) |
@@ -40,7 +40,7 @@ rustc_tsan = { path = "../librustc_tsan" } | |||
dlmalloc = { version = "0.1", features = ['rustc-dep-of-std'] } | |||
|
|||
[target.x86_64-fortanix-unknown-sgx.dependencies] | |||
fortanix-sgx-abi = { version = "0.3.1", features = ['rustc-dep-of-std'] } | |||
fortanix-sgx-abi = { version = "0.3.2", features = ['rustc-dep-of-std'] } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Diff: fortanix/rust-sgx@769d806 (adding stability attributes)
@@ -63,4 +48,19 @@ cfg_if! { | |||
} | |||
} | |||
|
|||
#[cfg(target_os = "android")] pub mod android; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These changes are from #56972
cc @jsakkine-intel |
I don't think it's reasonable for I would suggest calling this either (For clarity, I don't think it makes sense for any other ABI to get the name |
8dc1c6a
to
8a665ad
Compare
8a665ad
to
dcb5db8
Compare
Ok, changed to |
Thanks! @bors r+ |
📌 Commit dcb5db8 has been approved by |
Add `std::os::fortanix_sgx` module This PR adds the `std::os::sgx` module to expose platform-specific APIs behind the `sgx_platform` feature gate. Depends on rust-lang#56972 to be able to meaningfully build `std::os` documentation for non-standard targets. Tracking issue: rust-lang#56975
Rollup of 10 pull requests Successful merges: - #55470 (box: Add documentation for `From` impls) - #56242 (Add missing link in docs) - #56944 (bootstrap: Link LLVM as a dylib with ThinLTO) - #56978 (Add `std::os::fortanix_sgx` module) - #56985 (Allow testing pointers for inboundedness while forbidding dangling pointers) - #56986 (rustc: Move jemalloc from rustc_driver to rustc) - #57010 (Actually run compiletest tests on CI) - #57021 (Enable emission of alignment attrs for pointer params) - #57074 (Fix recursion limits) - #57085 (librustc_codegen_llvm: Don't eliminate empty structs in C ABI on linux-sparc64) Failed merges: r? @ghost
This PR adds the
std::os::sgx
module to expose platform-specific APIs behind thesgx_platform
feature gate.Depends on #56972 to be able to meaningfully build
std::os
documentation for non-standard targets.Tracking issue: #56975