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 2020/04/12 13:50:08 UTC

[GitHub] [incubator-teaclave-sgx-sdk] duanbing commented on issue #223: How to correctly port third party crates like time

duanbing commented on issue #223: How to correctly port third party crates like time
URL: https://github.com/apache/incubator-teaclave-sgx-sdk/issues/223#issuecomment-612617603
 
 
   Here is a ported crate time :  https://github.com/xuperdata/untrusted-time
   
   RMheng <no...@github.com> 于2020年4月12日周日 下午9:41写道:
   
   > Rust SGX SDK v1.0.4 Release Notes
   > <https://github.com/apache/incubator-teaclave-sgx-sdk#v104-release> said
   >
   > New third party libraries bit-vec, chrono, erased-serde, fxhash,
   > nan-preserving-float, num-bigint, quick-error, raft-rs, time, webpki-roots,
   > yasna.
   >
   > This means that we can port third party crate like crate time in the
   > rust-sgx. But I’m confused how to express correctly in the Cargo.toml. I
   > wrote in the Cargo.toml
   >
   > [dependencies.time]
   >
   > version = "0.1"
   >
   > default-features = false
   >
   >
   > And my code is
   >
   > extern crate time;
   >
   >
   > But got error like
   >
   > error: duplicate lang item in crate `std` (which `time` depends on): `f32_runtime`.
   >
   >   |
   >
   >   = note: the lang item is first defined in crate `sgx_tstd` (which `helloworldsampleenclave` depends on)
   >
   >
   > When we import the third party, are there any requirement?And how we
   > define the requirements if I want to import other party?
   > Thanks for your reading and looking forward to your reply:)
   >
   > —
   > You are receiving this because you are subscribed to this thread.
   > Reply to this email directly, view it on GitHub
   > <https://github.com/apache/incubator-teaclave-sgx-sdk/issues/223>, or
   > unsubscribe
   > <https://github.com/notifications/unsubscribe-auth/AA5PZAFXJYQ4FUHO7LHRPPLRMHAHTANCNFSM4MGNLMQQ>
   > .
   >
   

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

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