1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51
#[cfg(all( any(target_arch = "wasm32", target_arch = "asmjs"), feature = "stdweb" ))] #[macro_use] extern crate stdweb; #[cfg(not(any(feature = "stdweb", feature = "wasm-bindgen")))] #[cfg(feature = "now")] extern crate time; #[cfg(any( not(any(target_arch = "wasm32", target_arch = "asmjs")), not(any(feature = "stdweb", feature = "wasm-bindgen")) ))] pub use crate::native::Instant; #[cfg(all( any(target_arch = "wasm32", target_arch = "asmjs"), any(feature = "stdweb", feature = "wasm-bindgen") ))] pub use crate::wasm::Instant; #[cfg(any( not(any(target_arch = "wasm32", target_arch = "asmjs")), not(any(feature = "stdweb", feature = "wasm-bindgen")) ))] #[cfg(feature = "now")] pub use crate::native::now; #[cfg(all( any(target_arch = "wasm32", target_arch = "asmjs"), any(feature = "stdweb", feature = "wasm-bindgen") ))] #[cfg(feature = "now")] pub use crate::wasm::now; pub use std::time::Duration; #[cfg(any( not(any(target_arch = "wasm32", target_arch = "asmjs")), not(any(feature = "stdweb", feature = "wasm-bindgen")) ))] mod native; #[cfg(all( any(target_arch = "wasm32", target_arch = "asmjs"), any(feature = "stdweb", feature = "wasm-bindgen") ))] mod wasm;