Public repository: timo / feel

Reader

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

feel / crates / feel-py / Cargo.toml · 1.2 KB · at da382279c66c · raw

1
[package]
2
name = "feel-py"
3
description = "Python (PyO3) wrapper around feel-core."
4
edition.workspace = true
5
version.workspace = true
6
license.workspace = true
7
8
[lib]
9
# The compiled module is `feel._feel`; the `feel` package (python/feel/) re-exports
10
# it and carries the type stubs (PEP 561). See pyproject.toml `[tool.maturin]`.
11
name = "_feel"
12
crate-type = ["cdylib", "rlib"]     # rlib so the boundary helpers are unit-testable
13
14
[dependencies]
15
# abi3-py39: build one wheel that runs on every CPython >= 3.9 (no per-version wheel).
16
pyo3 = { version = "0.28", features = ["extension-module", "abi3-py39"] }
17
# Build the EvalEnv instant (now()/today()) from the system clock; no tzdb needed
18
# here (temporal value logic lives in feel-core).
19
jiff = { workspace = true, features = ["std"] }
20
# Default-features ON: keeps RustRegex available as the `xpath-regex` provider and
21
# the system tzdb for named zones. The Python `re` dialect is the default (ADR-16).
22
feel-core = { path = "../feel-core" }
23
24
[features]
25
# Mirrors feel-wasm's `xpath-regex`: compile the Rust regex dialect (RustRegex)
26
# instead of the Python `re` dialect — byte-identical to feel-core/TCK, at the cost
27
# of dropping the host (`re`) dialect.
28
xpath-regex = []