Skip to content

Commit 19d13d9

Browse files
committed
fix: disable wasmbind in chrono for wasm32-unknown-unknown
1 parent 915bc3f commit 19d13d9

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

crates/rmcp/Cargo.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ rustdoc-args = ["--cfg", "docsrs"]
1717
serde = { version = "1.0", features = ["derive", "rc"] }
1818
serde_json = "1.0"
1919
thiserror = "2"
20-
chrono = { version = "0.4.38", features = ["serde"] }
20+
chrono = { version = "0.4.38", default-features = false, features = ["serde", "clock", "std", "oldtime"] }
2121
tokio = { version = "1", features = ["sync", "macros", "rt", "time"] }
2222
futures = "0.3"
2323
tracing = { version = "0.1" }
@@ -61,6 +61,9 @@ uuid = { version = "1", features = ["v4"], optional = true }
6161
# macro
6262
rmcp-macros = { version = "0.1", workspace = true, optional = true }
6363

64+
[target.'cfg(not(target = "wasm32-unknown-unknown"))'.dependencies.chrono]
65+
features = ["wasmbind"]
66+
6467
[features]
6568
default = ["base64", "macros", "server"]
6669
client = []

0 commit comments

Comments
 (0)