forked from sebcrozet/instant
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
35 lines (28 loc) · 1.16 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
[package]
name = "instant"
version = "0.1.2"
authors = ["sebcrozet <[email protected]>"]
description = "A partial replacement for std::time::Instant that works on WASM too."
repository = "https://github.com/sebcrozet/instant"
readme = "README.md"
license = "BSD-3-Clause"
keywords = [ "time", "wasm" ]
edition = "2018"
[lib]
crate-type = ["cdylib", "rlib"]
[features]
now = [ "time" ]
wasm-bindgen = ["web-sys"]
[target.'cfg(not(any(feature = "stdweb", feature = "wasm-bindgen")))'.dependencies]
time = { version = "0.1", optional = true }
[target.wasm32-unknown-unknown.dependencies]
stdweb = { version = "0.4", optional = true }
web-sys = { version = "0.3", optional = true, features = ['Window', 'Performance', 'PerformanceTiming'] }
[target.wasm32-unknown-emscripten.dependencies]
stdweb = { version = "0.4", optional = true }
web-sys = { version = "0.3", optional = true, features = ['Window', 'Performance', 'PerformanceTiming'] }
[target.asmjs-unknown-emscripten.dependencies]
stdweb = { version = "0.4", optional = true }
web-sys = { version = "0.3", optional = true, features = ['Window', 'Performance', 'PerformanceTiming'] }
[dev-dependencies]
wasm-bindgen-test = "0.2"