| 1 | [package] |
| 2 | name = "feel-core" |
| 3 | description = "Pure (S-)FEEL expression engine — no target-specific dependencies." |
| 4 | edition.workspace = true |
| 5 | version.workspace = true |
| 6 | license.workspace = true |
| 7 | |
| 8 | [dependencies] |
| 9 | lalrpop-util.workspace = true |
| 10 | logos.workspace = true |
| 11 | unicode-ident.workspace = true |
| 12 | # The workspace pins jiff to `default-features = false`, so the embedded IANA tzdb |
| 13 | # is opt-in (the `tzdb-bundle` feature), keeping ~466 KB out of the WASM bundle by |
| 14 | # default (ADR-18). These base features re-add jiff's non-tzdb defaults plus the |
| 15 | # *system* tzdb on native; only named-zone lookups need a bundled tzdb. |
| 16 | jiff = { workspace = true, features = ["std", "tz-system", "tz-fat", "tzdb-zoneinfo", "tzdb-concatenated", "perf-inline"] } |
| 17 | # Only the `rust-regex` provider needs the `regex` crate; targets that bring |
| 18 | # their own host engine (e.g. feel-wasm's JS RegExp) build without it. |
| 19 | regex = { workspace = true, optional = true } |
| 20 | |
| 21 | [features] |
| 22 | # `rust-regex` bundles the Rust `regex` engine as the default FeelRegex provider |
| 23 | # (ADR-16). `tzdb-bundle` embeds the IANA tzdb so named zones (`@Europe/Paris`) |
| 24 | # resolve even without a system tzdb (i.e. on wasm); see ADR-18. Both are on by |
| 25 | # default (native builds + feel-pg); feel-wasm disables them (`default-features = |
| 26 | # false`) and re-enables each via its own `xpath-regex` / `iana-tz` features. |
| 27 | default = ["rust-regex", "tzdb-bundle"] |
| 28 | rust-regex = ["dep:regex"] |
| 29 | tzdb-bundle = ["jiff/tzdb-bundle-always"] |
| 30 | |
| 31 | [build-dependencies] |
| 32 | lalrpop.workspace = true |
| 33 | |
| 34 | [dev-dependencies] |
| 35 | serde_json.workspace = true |
| 36 | criterion = "0.5" |
| 37 | |
| 38 | [[bench]] |
| 39 | name = "eval" |
| 40 | harness = false |