Lines Matching full:wasm
3 If you call `std::time::Instant::now()` on a WASM platform, it will panic. This crate provides a pa…
4 replacement for `std::time::Instant` that works on WASM too. This defines the type `instant::Instan…
7 **and** you enabled either the `stdweb` or the `wasm-bindgen` feature. This emulation is based on t…
12 Note that even if the **stdweb** or **wasm-bindgen** feature is enabled, this crate will continue t…
13 …t targeting wasm32. This allows for portable code that will work on both native and WASM platforms.
17 * Call `performance.now()` when compiling for a WASM platform with the features **stdweb** or **was…
18 * Return the time elapsed since the *Unix Epoch* on *native*, *non-WASM* platforms.
40 ### Using `instant` for a WASM platform.
41 This example shows the use of the `stdweb` feature. It would be similar with `wasm-bindgen`.
59 ### Using `instant` for a WASM platform where `performance.now()` is not available.
65 instant = { version = "0.1", features = [ "wasm-bindgen", "inaccurate" ] }
84 wasm-bindgen = [ "instant/wasm-bindgen" ]
106 wasm-bindgen = [ "instant/wasm-bindgen" ]
122 ### Using the feature `now` without `stdweb` or `wasm-bindgen`.
138 _javascript WASM bindings file_: