Add wasm-bindgen to instant crate for wasm.

This commit is contained in:
Stephen Chung
2020-06-18 09:37:44 +08:00
parent 2a73841549
commit 2f815e277d
2 changed files with 7 additions and 3 deletions

View File

@@ -65,4 +65,4 @@ features = ["compile-time-rng"]
optional = true
[target.'cfg(target_arch = "wasm32")'.dependencies]
instant= "0.1.4" # WASM implementation of std::time::Instant
instant= { version = "0.1.4", features = ["wasm-bindgen"] } # WASM implementation of std::time::Instant