Repository: clarkmcc/cel-rust (language: rust)

Issue:
Support non wasm-bindgen targets…
Currently the dependency to `chrono` enables [all default features](https://docs.rs/chrono/latest/chrono/#features)… which includes `wasmbind`. As far as I can tell tho, only `alloc` is really required. When you target a wasm runtime that's not the browser, chances are high some bindings won't be available and mostly not needed (i.e. no Javascript).

"Simple fix" is to `chrono = { version= "0.4.26", default-features = false, features = ["alloc"] }` only depends on what's needed. But I could also see a `wasm/wasi` feature here that'd do the appropriate… wdyt? What sounds better limit to what's needed? Or introduce a "wasm profile", have possibly `wasmbind` as a default feature, but then now becomes "disablable" by users (which would map to what `chrono` does)? I can create the PR, no worries!


Discussion / hints:
For anybody running in the same issue, the error reported by the wasm runtime on loading the module would be something along the lines of:

```shell
Error: failed to acquire "__wbindgen_describe"
```

Fix patch:
diff --git a/interpreter/Cargo.toml b/interpreter/Cargo.toml
index 87a3c6d..26b23e4 100644
--- a/interpreter/Cargo.toml
+++ b/interpreter/Cargo.toml
@@ -11,7 +11,7 @@ categories = ["compilers"]
 [dependencies]
 cel-parser = { path = "../parser", version = "0.7.0" }
 thiserror = "1.0.40"
-chrono = "0.4.26"
+chrono = { version= "0.4.26", default-features = false, features = ["alloc"] }
 nom = "7.1.3"
 paste = "1.0.14"
 serde = "1.0.196"


Test patch: