Public repository: timo / feel

Reader

An interpreter of FEEL, written in Rust, with integrations for PostgreSQL, WASM, Lua, and Python.

feel / Cargo.toml · 1.6 KB · at 90f493059be5 · raw

1
[workspace]
2
resolver = "2"
3
members = [
4
    "crates/feel-core",
5
    "crates/feel-pg",
6
    "crates/feel-wasm",
7
    "crates/feel-py",
8
    "crates/feel-lua",
9
]
10
11
# `feel-pg` requires a pgrx-initialized PostgreSQL toolchain (`cargo pgrx init`)
12
# to compile its `pgrx-pg-sys` bindings, `feel-py` needs a PyO3 link context
13
# (built via maturin, not a plain `cargo build`), and `feel-lua` links a Lua
14
# state (vendored or the host's). All three are kept out of `default-members` so
15
# a bare `cargo build` only builds the portable members:
16
#   cargo build -p feel-core -p feel-wasm
17
default-members = [
18
    "crates/feel-core",
19
    "crates/feel-pg",
20
    "crates/feel-wasm",
21
]
22
23
[workspace.package]
24
edition = "2021"
25
version = "0.1.0"
26
license = "Apache-2.0"
27
28
[workspace.dependencies]
29
lalrpop = "0.23"
30
# The built-in `lexer`/`unicode` features pull the whole `regex-automata` stack
31
# into the runtime; we tokenize with `logos` instead, so only the parser
32
# state-machine runtime is needed (`default-features = false` drops regex-automata).
33
lalrpop-util = { version = "0.23", default-features = false }
34
logos = "0.16"
35
unicode-ident = "1"
36
regex = "1"
37
serde_json = "1"
38
# Temporal types (ADR-18). Calendar-aware (`Span`/`SignedDuration` map onto FEEL's
39
# two duration kinds), nanosecond precision, ISO-8601 parse/format. Portable, so
40
# ADR-1 holds. `default-features = false` here (it is only honoured at the
41
# workspace level) so the embedded IANA tzdb is opt-in per crate via feature
42
# flags — keeping it out of the WASM bundle by default; each member enables the
43
# jiff features it needs.
44
jiff = { version = "0.2", default-features = false }