I happened to give this a try and built a drop-in replacement for `std`, see 
https://github.com/yaxitech/incubator-teaclave-sgx-sdk/commit/41ae223d6458db488b938927015c643720b416ef.
 I can build an internal project that depends on things like `reqwest` just 
fine with the resulting sysroot. The only patch I have to apply is to remove 
the cdylib crate-type from hyper.

Of course the result cannot actually run as syscalls get linked in from glibc 
via the `libc` crate, heavily used by `mio` and `socket2`. Such crates either 
still have to get adapted 
"[sgx-world](https://github.com/dingelish/sgx-world)-style" or be provided with 
a `libc` replacement / extension that builds on ocalls or whatever is 
appropriate for the required syscall functions.

(By the way, this is basically a duplicate of #75.)

-- 
Reply to this email directly or view it on GitHub:
https://github.com/apache/incubator-teaclave-sgx-sdk/issues/311#issuecomment-1029968477
You are receiving this because you are subscribed to this thread.

Message ID: <apache/incubator-teaclave-sgx-sdk/issues/311/[email protected]>

Reply via email to