facebookresearch / Private-ID

A collection of algorithms that can do join between two parties while preserving the privacy of keys on which the join happens
Apache License 2.0
201 stars 46 forks source link

Build failure #7

Closed barkanido closed 3 years ago

barkanido commented 3 years ago
➜ cargo --version     
cargo 1.48.0 (65cbdd2dc 2020-10-14)
➜ cargo +nightly --version
cargo 1.50.0-nightly (d274fcf86 2020-12-07)
➜ cargo +nightly build
...
error[E0432]: unresolved import `time`
  --> common/src/timer.rs:12:42
   |
12 | #[cfg(not(target_arch = "wasm32"))]  use time::Instant;
   |                                          ^^^^ help: a similar path exists: `std::time`

   Compiling curv v0.2.3 (https://github.com/KZen-networks/curv?tag=v0.2.3#d6c575b5)
   Compiling paillier v0.3.4 (https://github.com/KZen-networks/rust-paillier?tag=v0.3.4#564352cb)
warning: unused import: `ops::SubAssign`
 --> common/src/timer.rs:7:5
  |
7 |     ops::SubAssign,
  |     ^^^^^^^^^^^^^^
  |
  = note: `#[warn(unused_imports)]` on by default

error: aborting due to previous error; 1 warning emitted

For more information about this error, try `rustc --explain E0432`.
error: could not compile `common`

To learn more, run the command again with --verbose.
warning: build failed, waiting for other jobs to finish...
error: build failed
barkanido commented 3 years ago

should this be:

#[cfg(not(target_arch = "wasm32"))]  use std::time::Instant;

?