Skip to content

Commit

Permalink
Fix chrono WASM Cargo feature (#230)
Browse files Browse the repository at this point in the history
Enable chrono `wasmbind` feature to fix panic in WASM environments.

---------

Co-authored-by: Truong Tan Dat <[email protected]>
  • Loading branch information
Stygmates and Truong Tan Dat authored Sep 8, 2023
1 parent 5f4c288 commit 8e66503
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions Cargo-1.45.lock
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# This file is automatically @generated by Cargo.
# It is not intended for manual editing.
version = 3

[[package]]
name = "anyhow"
version = "1.0.58"
Expand Down Expand Up @@ -191,10 +193,12 @@ version = "0.4.19"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "670ad68c9088c2a963aaa298cb369688cf3f9465ce5e2d4ca10e6e0098a1ce73"
dependencies = [
"js-sys",
"libc",
"num-integer",
"num-traits",
"serde",
"wasm-bindgen",
"winapi",
]

Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ serde_json = "1.0"
sha2 = "0.10"
ureq = { version = "2", optional = true }
url = { version = "2.1", features = ["serde"] }
chrono = { version = "0.4", default-features = false, features = ["clock", "serde", "std"] }
chrono = { version = "0.4", default-features = false, features = ["clock", "serde", "std", "wasmbind"] }
serde_path_to_error = "0.1.2"

[target.'cfg(target_arch = "wasm32")'.dependencies]
Expand Down

0 comments on commit 8e66503

Please sign in to comment.