> As far as I understand, there are two ways to use this SDK to write enclave
> codes: (a) build SGX's version of the std and use it normally; (b) write the
> enclave codes in no_std.
Yes you are correct. But both of them are *logically building a sysroot*, so I
don't recommend to use stable Rust.
> Can stable rust be used if the second way is used? Here we don't need to deal
> with xcargo or std aware cargo. Or am I understanding incorrectly?
Yes you can. Just make sure `${projectroot}/rust-toolchain` 's content is
something like `stable-2020-xx-xx` or `stable` and export `RUSTC_BOOTSTRAP=1`.
I'm not sure if current code can be built successfully. But if you need, I can
create a branch to support you. Please specify the stable toolchain you want to
use and I'd be working on that.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/apache/incubator-teaclave-sgx-sdk/issues/315#issuecomment-775649098