1[package] 2name = "instant" 3version = "0.1.9" 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] 13now = [ "time" ] 14wasm-bindgen = ["js-sys", "wasm-bindgen_rs", "web-sys"] 15inaccurate = [] 16 17[dependencies] 18cfg-if = "1.0" 19 20[target.'cfg(not(any(feature = "stdweb", feature = "wasm-bindgen")))'.dependencies] 21time = { version = "0.2", optional = true } 22 23[target.wasm32-unknown-unknown.dependencies] 24js-sys = { version = "0.3", optional = true } 25stdweb = { version = "0.4", optional = true } 26wasm-bindgen_rs = { package = "wasm-bindgen", version = "0.2", optional = true } 27web-sys = { version = "0.3", optional = true, features = ['Window', 'Performance', 'PerformanceTiming'] } 28 29[target.wasm32-unknown-emscripten.dependencies] 30js-sys = { version = "0.3", optional = true } 31stdweb = { version = "0.4", optional = true } 32wasm-bindgen_rs = { package = "wasm-bindgen", version = "0.2", optional = true } 33web-sys = { version = "0.3", optional = true, features = ['Window', 'Performance', 'PerformanceTiming'] } 34 35[target.asmjs-unknown-emscripten.dependencies] 36js-sys = { version = "0.3", optional = true } 37stdweb = { version = "0.4", optional = true } 38wasm-bindgen_rs = { package = "wasm-bindgen", version = "0.2", optional = true } 39web-sys = { version = "0.3", optional = true, features = ['Window', 'Performance', 'PerformanceTiming'] } 40 41[dev-dependencies] 42wasm-bindgen-test = "0.3" 43