update Cargo.lock and get rid of some dependencies

This commit is contained in:
2025-08-10 08:04:23 +02:00
parent 695ad2e41e
commit 601a6b90ac
3 changed files with 92 additions and 314 deletions

View File

@@ -9,31 +9,14 @@ crate-type = ["cdylib"]
[dependencies]
wasm-bindgen = "0.2"
js-sys = "0.3"
cel = "0.11"
serde = { version = "1.0", features = ["derive"] }
serde-wasm-bindgen = "0.6"
chrono = { version = "0.4", features = ["serde"] }
# The `console_error_panic_hook` crate provides better debugging of panics by
# logging them with `console.error`. This is great for development, but requires
# all the `std::fmt` and `std::panicking` infrastructure, so isn't great for
# code size when deploying.
console_error_panic_hook = { version = "0.1.6", optional = true }
cel = { version = "0.11", default-features = false, features = ["chrono"] }
chrono = { version = "0.4", default-features = false }
# `wee_alloc` is a tiny allocator for wasm that is only ~1K in code size
# compared to the default allocator's ~10K. It is slower than the default
# allocator, however.
wee_alloc = { version = "0.4.5", optional = true }
[dependencies.web-sys]
version = "0.3"
features = [
"console",
]
[features]
default = ["console_error_panic_hook"]
[profile.release]
# Tell `rustc` to optimize for small code size.
opt-level = "s"