2025-08-07 21:10:17 +02:00
|
|
|
[package]
|
2025-08-08 07:06:47 +02:00
|
|
|
name = "cel-rust-wasm"
|
2025-08-08 07:38:48 +02:00
|
|
|
version = "0.1.0"
|
2025-08-07 21:10:17 +02:00
|
|
|
edition = "2024"
|
2025-08-08 07:06:47 +02:00
|
|
|
|
|
|
|
|
[lib]
|
|
|
|
|
crate-type = ["cdylib"]
|
2025-08-07 21:10:17 +02:00
|
|
|
|
|
|
|
|
[dependencies]
|
2025-08-08 07:06:47 +02:00
|
|
|
wasm-bindgen = "0.2"
|
2025-08-08 07:17:39 +02:00
|
|
|
js-sys = "0.3"
|
2025-08-10 08:04:23 +02:00
|
|
|
cel = { version = "0.11", default-features = false, features = ["chrono"] }
|
|
|
|
|
chrono = { version = "0.4", default-features = false }
|
2025-08-08 07:06:47 +02:00
|
|
|
|
|
|
|
|
# `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 }
|
|
|
|
|
|
|
|
|
|
[profile.release]
|
|
|
|
|
# Tell `rustc` to optimize for small code size.
|
|
|
|
|
opt-level = "s"
|
|
|
|
|
lto = true
|