You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@teaclave.apache.org by GitBox <gi...@apache.org> on 2022/02/04 13:05:21 UTC

[GitHub] [incubator-teaclave-sgx-sdk] cschramm commented on issue #311: Using std Aware Cargo

cschramm commented on issue #311:
URL: https://github.com/apache/incubator-teaclave-sgx-sdk/issues/311#issuecomment-1029968477


   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.)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@teaclave.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@teaclave.apache.org
For additional commands, e-mail: notifications-help@teaclave.apache.org