Use target_family for wasm.
This commit is contained in:
@@ -97,10 +97,7 @@ default-features = false
|
||||
features = ["maths"]
|
||||
optional = true
|
||||
|
||||
[target.'cfg(target_arch = "wasm32")'.dependencies]
|
||||
instant = { version = "0.1.10" } # WASM implementation of std::time::Instant
|
||||
|
||||
[target.'cfg(target_arch = "wasm64")'.dependencies]
|
||||
[target.'cfg(target_family = "wasm")'.dependencies]
|
||||
instant = { version = "0.1.10" } # WASM implementation of std::time::Instant
|
||||
|
||||
[package.metadata.docs.rs]
|
||||
|
Reference in New Issue
Block a user