fix: disable wasmbind in chrono for wasm32-unknown-unknown (#234)

This commit is contained in:
okoyfoeciov 2025-05-28 23:10:36 +07:00 committed by GitHub
parent ff71a52615
commit 9fc6af091d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -17,7 +17,6 @@ rustdoc-args = ["--cfg", "docsrs"]
serde = { version = "1.0", features = ["derive", "rc"] }
serde_json = "1.0"
thiserror = "2"
chrono = { version = "0.4.38", features = ["serde"] }
tokio = { version = "1", features = ["sync", "macros", "rt", "time"] }
futures = "0.3"
tracing = { version = "0.1" }
@ -65,6 +64,12 @@ bytes = { version = "1", optional = true }
# macro
rmcp-macros = { version = "0.1", workspace = true, optional = true }
[target.'cfg(not(all(target_family = "wasm", target_os = "unknown")))'.dependencies]
chrono = { version = "0.4.38", features = ["serde"] }
[target.'cfg(all(target_family = "wasm", target_os = "unknown"))'.dependencies]
chrono = { version = "0.4.38", default-features = false, features = ["serde", "clock", "std", "oldtime"] }
[features]
default = ["base64", "macros", "server"]
client = []