Skip to content

Commit

Permalink
Fix wasm build
Browse files Browse the repository at this point in the history
  • Loading branch information
0byteme committed Aug 6, 2024
1 parent 4a9a50b commit e8c3d2f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down

0 comments on commit e8c3d2f

Please sign in to comment.