-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Tracking issue: platform-specific APIs for SGX target #56975
Comments
cc @jsakkine-intel |
Thanks. Interesting development. I haven't really followed Fortanix SGX stack development that closely. If I wanted to write a test program with this what would be the easy steps to get started? |
@jsakkine-intel the toolchain is still in flux, the steps keep changing quite frequently these days. Right now, this should do it (if you have PSW & SDK driver installed):
|
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
Hi, my name is Yoni Moses and I work for a startup called Fireblocks. We are developing our core technology on SGX, that's why our main language was C++ until now. For a long time we have considered using Rust instead of C++. We've found a number of unofficial modules that tried to adopt Rust to run on SGX platform. However, for us it was amazing news to see that you guys have started to add SGX as an official target for Rust on main repository. |
@yonimo the |
Presumably, the new website is https://edp.fortanix.com/ |
Indeed |
Hello, any update on this? It'd be nice to start using stable Rust after over a year! |
@nhynes Which APIs do you want to use in particular? Just EREPORT/EGETKEY or others as well? |
Yep, those are the ones. |
We discussed this in today's @rust-lang/lang meeting. The only part of this that seems lang-specific is the intrinsics; everything else appears to be the domain of libs. Of the intrinsics, we were wondering, since we have subsequently shipped |
Sure, but couldn't you ask the same question of every other intrinsic? |
This issue tracks the functionality available behind the
sgx_platform
feature gate.Relevant PRs:
std::os::fortanix_sgx
module #56978io
andarch
modules tostd::os::fortanix_sgx
#57119TODO:
AlignXXX<[u8; _]>
types should be replaced by the actual types (from thesgx-isa
crate). Concern: that would makestd
dependent on thebitflags
crate.For more information about the target, see https://edp.fortanix.com
The text was updated successfully, but these errors were encountered: