fix: disable wasmbind in chrono for wasm32-unknown-unknown (#234)
This commit is contained in:
parent
ff71a52615
commit
9fc6af091d
1 changed files with 6 additions and 1 deletions
|
|
@ -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 = []
|
||||
|
|
|
|||
Loading…
Reference in a new issue