Add wasm-bindgen and stdweb features.
This commit is contained in:
parent
4a8debb5ed
commit
aef18b5473
@ -48,6 +48,10 @@ metadata = [ "serde", "serde_json"] # enables exporting functions metadata to JS
|
|||||||
# compiling for no-std
|
# compiling for no-std
|
||||||
no_std = [ "smallvec/union", "num-traits/libm", "hashbrown", "core-error", "libm", "ahash/compile-time-rng" ]
|
no_std = [ "smallvec/union", "num-traits/libm", "hashbrown", "core-error", "libm", "ahash/compile-time-rng" ]
|
||||||
|
|
||||||
|
# compiling for WASM
|
||||||
|
wasm-bindgen = [ "instant/wasm-bindgen" ]
|
||||||
|
stdweb = [ "instant/stdweb" ]
|
||||||
|
|
||||||
[profile.release]
|
[profile.release]
|
||||||
lto = "fat"
|
lto = "fat"
|
||||||
codegen-units = 1
|
codegen-units = 1
|
||||||
@ -94,7 +98,7 @@ default_features = false
|
|||||||
optional = true
|
optional = true
|
||||||
|
|
||||||
[target.'cfg(target_arch = "wasm32")'.dependencies]
|
[target.'cfg(target_arch = "wasm32")'.dependencies]
|
||||||
instant= { version = "0.1", features = ["wasm-bindgen"] } # WASM implementation of std::time::Instant
|
instant= { version = "0.1" } # WASM implementation of std::time::Instant
|
||||||
|
|
||||||
[package.metadata.docs.rs]
|
[package.metadata.docs.rs]
|
||||||
features = [ "metadata", "internals" ]
|
features = [ "metadata", "internals" ]
|
||||||
|
Loading…
Reference in New Issue
Block a user