diff --git a/Cargo.toml b/Cargo.toml index aed5f7634..18240dfb5 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -155,9 +155,8 @@ codegen-units = 1 #opt-level = "z" # optimize for size #panic = 'abort' # remove stack backtrace for no-std -[target.'cfg(target_family = "wasm")'.dependencies] -[target.'cfg(not(feature = "no_time"))'.dependencies] -web-time = { version = "1.1.0" ,optional = true}# WASM implementation of std::time::Instant +[target.'cfg(all(target_family = "wasm", not(feature = "no_time")))'.dependencies] +web-time = { version = "1.1.0" }# WASM implementation of std::time::Instant [package.metadata.docs.rs] features = ["document-features", "metadata", "serde", "internals", "decimal", "debugging"]