-
Notifications
You must be signed in to change notification settings - Fork 264
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
Using std Aware Cargo #311
Comments
I think the |
@mssun thanks! i'll create a branch for rust-sgx-sdk, based on your build-std repo :-) |
Related tracking issue / discussion: rust-lang/wg-cargo-std-aware#3 |
I happened to give this a try and built a drop-in replacement for Of course the result cannot actually run as syscalls get linked in from glibc via the (By the way, this is basically a duplicate of #75.) |
@cschramm Thank you very much for your detailed problem analysis and test report. I plan to support three build strategies in the next release:
In my current work in progress, most of the base crates builds are good using Compatibility issues that I often encounter in my testing.
For incompatible third-party crates, it can be resolved by the following ways:
|
@cschramm @PiDelport |
"std Aware Cargo" (https://github.com/rust-lang/wg-cargo-std-aware) is one of the most important building blocks for Teaclave SGX SDK. With this, we can build SGX enclave without worry about the complexity brought by Xargo or no-std Cargo. However this is a long-term plan for Cargo, which doesn't gain higher priority from the community.
Recently, I found that they already has an MVP implementation (https://github.com/rust-lang/wg-cargo-std-aware#mvp-implementation). This supports an option called
build-std
to build std/core/compiler-builtins from sources. However, the MVP implementation only partially solves our issue. I didn't see any further plan further.However, I found the
build-std
option may good enough for us. I created a repository to show the possibility of using it: https://github.com/mssun/build-std.If you're interested in this, please help me to figure out if there're any potential difficulties of using
build-std
.The text was updated successfully, but these errors were encountered: