sccommunity / crates-sgx

crates-sgx is a monorepo of all Rust crates ported for Teaclave SGX SDK targeting Intel SGX.
https://sccommunity.github.io/crates-sgx
Apache License 2.0
12 stars 2 forks source link

Add Crates #23

Closed Zha0Chan closed 4 years ago

Zha0Chan commented 4 years ago

NOTE: Choose a PR template below and delete others.

Add Crates

try-lock

Description

try-lock

Fixes # (issue) 1.add sgx-tests 2.port to teaclave-sgx-sdk.

Crate Meta

Diff of Changes

------------------------- crates/try-lock/src/lib.rs -------------------------- index 7c0feec..2033014 100644 @@ -1,7 +1,7 @@ -#![doc(html_root_url = "https://docs.rs/try-lock/0.2.2")] -#![deny(missing_docs)] -#![deny(missing_debug_implementations)] -#![deny(warnings)] +// #![doc(html_root_url = "https://docs.rs/try-lock/0.2.2")] +// #![deny(missing_docs)] +// #![deny(missing_debug_implementations)] +// #![deny(warnings)]

//! A light-weight lock guarded by an atomic boolean. //! @@ -43,6 +43,14 @@ //! assert_eq!(locked2.name, "Spanner Bundle"); //! ```

+#![cfg_attr(all(feature = "mesalock_sgx",

-#[cfg(test)] -mod tests { +//#[cfg(test)] +#[cfg(feature = "enclave_unit_test")] +extern crate sgx_tunittest; +pub mod tests {

----------------------------------- meta.txt ----------------------------------- index 7e19132..005cbfb 100644 @@ -26,3 +26,4 @@ spin-rs, 0.5.2, https://github.com/mvdnes/spin-rs, 7516c8037d3d15712ba4d8499ab07 sval, 0.5.1, https://github.com/sval-rs/sval, 85ccf03b78736d910a1ae92c39690640d1cbfef8, Apache-2.0, partial thiserror, 1.0.14, https://github.com/dtolnay/thiserror, 6fd405929807e73ac4b1bd026192a91f64a08636, MIT/Apache-2.0, partial thread-id, 3.3.0, https://github.com/ruuda/thread-id, 841dd55b94aef76f2bb199633bb4fe740ecc8be9, MIT/Apache-2, no +try-lock, 0.2.2, https://github.com/seanmonstar/try-lock, 90a682467dfbaf762a8986d406c6af6851af2ebd, MIT, full

mssun commented 4 years ago

Merged. Thanks!