• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1[package]
2name = "instant"
3version = "0.1.12"
4authors = ["sebcrozet <developer@crozet.re>"]
5description = "A partial replacement for std::time::Instant that works on WASM too."
6repository = "https://github.com/sebcrozet/instant"
7readme = "README.md"
8license = "BSD-3-Clause"
9keywords = [ "time", "wasm" ]
10edition = "2018"
11
12[features]
13wasm-bindgen = ["js-sys", "wasm-bindgen_rs", "web-sys"]
14inaccurate = []
15now = []
16
17[dependencies]
18cfg-if = "1.0"
19
20[target.wasm32-unknown-unknown.dependencies]
21js-sys = { version = "0.3", optional = true }
22stdweb = { version = "0.4", optional = true }
23wasm-bindgen_rs = { package = "wasm-bindgen", version = "0.2", optional = true }
24web-sys = { version = "0.3", optional = true, features = ['Window', 'Performance', 'PerformanceTiming'] }
25
26[target.wasm32-unknown-emscripten.dependencies]
27js-sys = { version = "0.3", optional = true }
28stdweb = { version = "0.4", optional = true }
29wasm-bindgen_rs = { package = "wasm-bindgen", version = "0.2", optional = true }
30web-sys = { version = "0.3", optional = true, features = ['Window', 'Performance', 'PerformanceTiming'] }
31
32[target.asmjs-unknown-emscripten.dependencies]
33js-sys = { version = "0.3", optional = true }
34stdweb = { version = "0.4", optional = true }
35wasm-bindgen_rs = { package = "wasm-bindgen", version = "0.2", optional = true }
36web-sys = { version = "0.3", optional = true, features = ['Window', 'Performance', 'PerformanceTiming'] }
37
38[dev-dependencies]
39wasm-bindgen-test = "0.3"
40