Skip to content

Commit 8e66503

Browse files
StygmatesTruong Tan Dat
andauthored
Fix chrono WASM Cargo feature (#230)
Enable chrono `wasmbind` feature to fix panic in WASM environments. --------- Co-authored-by: Truong Tan Dat <[email protected]>
1 parent 5f4c288 commit 8e66503

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

Cargo-1.45.lock

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# This file is automatically @generated by Cargo.
22
# It is not intended for manual editing.
3+
version = 3
4+
35
[[package]]
46
name = "anyhow"
57
version = "1.0.58"
@@ -191,10 +193,12 @@ version = "0.4.19"
191193
source = "registry+https://github.com/rust-lang/crates.io-index"
192194
checksum = "670ad68c9088c2a963aaa298cb369688cf3f9465ce5e2d4ca10e6e0098a1ce73"
193195
dependencies = [
196+
"js-sys",
194197
"libc",
195198
"num-integer",
196199
"num-traits",
197200
"serde",
201+
"wasm-bindgen",
198202
"winapi",
199203
]
200204

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ serde_json = "1.0"
3131
sha2 = "0.10"
3232
ureq = { version = "2", optional = true }
3333
url = { version = "2.1", features = ["serde"] }
34-
chrono = { version = "0.4", default-features = false, features = ["clock", "serde", "std"] }
34+
chrono = { version = "0.4", default-features = false, features = ["clock", "serde", "std", "wasmbind"] }
3535
serde_path_to_error = "0.1.2"
3636

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

0 commit comments

Comments
 (0)