Add support for Instant for wasm32.

This commit is contained in:
Stephen Chung
2020-06-17 16:50:57 +08:00
parent ae6d5e13a9
commit 2a73841549
5 changed files with 12 additions and 7 deletions

View File

@@ -63,3 +63,6 @@ version = "0.3.2"
default-features = false
features = ["compile-time-rng"]
optional = true
[target.'cfg(target_arch = "wasm32")'.dependencies]
instant= "0.1.4" # WASM implementation of std::time::Instant