From 42feb83cc1d8e75efbae5f492865ad0c03cfbd34 Mon Sep 17 00:00:00 2001 From: Stefan Date: Mon, 23 Feb 2026 13:06:24 +0100 Subject: [PATCH] revert making arbitrary_precision non-default --- bindings/c/Cargo.toml | 4 ++-- bindings/nodejs/Cargo.toml | 4 ++-- bindings/python/Cargo.toml | 4 ++-- bindings/uniffi/Cargo.toml | 4 ++-- core/engine/Cargo.toml | 6 +++--- core/expression/Cargo.toml | 4 ++-- core/template/Cargo.toml | 7 ++++--- core/types/Cargo.toml | 2 +- 8 files changed, 18 insertions(+), 17 deletions(-) diff --git a/bindings/c/Cargo.toml b/bindings/c/Cargo.toml index ffb31ade..7641efc6 100644 --- a/bindings/c/Cargo.toml +++ b/bindings/c/Cargo.toml @@ -12,8 +12,8 @@ serde = { workspace = true } serde_json = { workspace = true } strum = { workspace = true, features = ["derive"] } tokio = { workspace = true, features = ["rt"] } -zen-engine = { path = "../../core/engine", features = ["arbitrary_precision"] } -zen-expression = { path = "../../core/expression", features = ["arbitrary_precision"] } +zen-engine = { path = "../../core/engine" } +zen-expression = { path = "../../core/expression" } zen-tmpl = { path = "../../core/template" } [lib] diff --git a/bindings/nodejs/Cargo.toml b/bindings/nodejs/Cargo.toml index 5bc273ee..f7488dd9 100644 --- a/bindings/nodejs/Cargo.toml +++ b/bindings/nodejs/Cargo.toml @@ -15,8 +15,8 @@ napi-sys = "3" napi-derive = "3" tokio-util = { workspace = true, features = ["rt"] } serde_json = { workspace = true } -zen-engine = { path = "../../core/engine", features = ["arbitrary_precision"] } -zen-expression = { path = "../../core/expression", features = ["arbitrary_precision"] } +zen-engine = { path = "../../core/engine" } +zen-expression = { path = "../../core/expression" } zen-tmpl = { path = "../../core/template" } serde = { workspace = true, features = ["derive"] } json_dotpath = { workspace = true } diff --git a/bindings/python/Cargo.toml b/bindings/python/Cargo.toml index 052a88b0..bd323e73 100644 --- a/bindings/python/Cargo.toml +++ b/bindings/python/Cargo.toml @@ -20,6 +20,6 @@ serde = { workspace = true } serde_json = { workspace = true } rust_decimal = { workspace = true, features = ["maths-nopanic"] } tokio-util = { version = "0.7", features = ["rt"] } -zen-engine = { path = "../../core/engine", features = ["arbitrary_precision"] } -zen-expression = { path = "../../core/expression", features = ["arbitrary_precision"] } +zen-engine = { path = "../../core/engine" } +zen-expression = { path = "../../core/expression" } zen-tmpl = { path = "../../core/template" } diff --git a/bindings/uniffi/Cargo.toml b/bindings/uniffi/Cargo.toml index 570b904c..8315f77b 100644 --- a/bindings/uniffi/Cargo.toml +++ b/bindings/uniffi/Cargo.toml @@ -15,8 +15,8 @@ path = "uniffi-bindgen.rs" [dependencies] uniffi = { version = "0.29", features = ["tokio", "cli"] } serde_json = { workspace = true } -zen-engine = { path = "../../core/engine", features = ["arbitrary_precision"] } -zen-expression = { path = "../../core/expression", features = ["arbitrary_precision"] } +zen-engine = { path = "../../core/engine" } +zen-expression = { path = "../../core/expression" } serde = { workspace = true, features = ["derive"] } async-trait = "0.1" tokio = "1.46" diff --git a/core/engine/Cargo.toml b/core/engine/Cargo.toml index 3f553b06..0f8a5e3f 100644 --- a/core/engine/Cargo.toml +++ b/core/engine/Cargo.toml @@ -26,7 +26,7 @@ tokio = { workspace = true, features = ["sync", "time"] } rquickjs = { version = "0.10", features = ["macro", "loader", "rust-alloc", "futures", "either", "properties"] } zen-types = { path = "../types", version = "0.53.0", default-features = false } zen-expression = { path = "../expression", version = "0.53.0", default-features = false } -zen-tmpl = { path = "../template", version = "0.53.0" } +zen-tmpl = { path = "../template", version = "0.53.0", default-features = false } nohash-hasher = { workspace = true } downcast-rs = { version = "2.0", features = ["std", "sync"] } @@ -52,6 +52,6 @@ harness = false name = "engine" [features] -default = [] +default = ["arbitrary_precision"] bindgen = ["rquickjs/bindgen"] -arbitrary_precision = ["serde_json/arbitrary_precision", "zen-expression/arbitrary_precision", "zen-types/arbitrary_precision"] \ No newline at end of file +arbitrary_precision = ["serde_json/arbitrary_precision", "zen-expression/arbitrary_precision", "zen-types/arbitrary_precision", "zen-tmpl/arbitrary_precision"] \ No newline at end of file diff --git a/core/expression/Cargo.toml b/core/expression/Cargo.toml index 17cc30a0..14858f2b 100644 --- a/core/expression/Cargo.toml +++ b/core/expression/Cargo.toml @@ -30,7 +30,7 @@ strsim = "0.11" iana-time-zone = "0.1" zen-macros = { path = "../macros", version = "0.53.0" } -zen-types = { path = "../types", version = "0.53.0" } +zen-types = { path = "../types", version = "0.53.0", default-features = false } [dev-dependencies] criterion = { workspace = true } @@ -41,7 +41,7 @@ serde_json5 = "0.2" recursive = { workspace = true } [features] -default = ["regex-deprecated"] +default = ["regex-deprecated", "arbitrary_precision"] regex-lite = ["dep:regex-lite"] regex-deprecated = ["dep:regex"] arbitrary_precision = ["serde_json/arbitrary_precision", "zen-types/arbitrary_precision"] diff --git a/core/template/Cargo.toml b/core/template/Cargo.toml index eef066b1..c825e00c 100644 --- a/core/template/Cargo.toml +++ b/core/template/Cargo.toml @@ -8,13 +8,14 @@ edition = "2021" repository = "https://github.com/gorules/zen.git" [dependencies] -zen-expression = { path = "../expression", version = "0.53.0" } +zen-expression = { path = "../expression", version = "0.53.0", default-features = false } thiserror = { workspace = true } serde = { workspace = true } serde_json = { workspace = true } [features] -default = ["regex-deprecated"] +default = ["regex-deprecated", "arbitrary_precision"] regex-lite = ["zen-expression/regex-lite"] -regex-deprecated = ["zen-expression/regex-deprecated"] \ No newline at end of file +regex-deprecated = ["zen-expression/regex-deprecated"] +arbitrary_precision = ["zen-expression/arbitrary_precision"] \ No newline at end of file diff --git a/core/types/Cargo.toml b/core/types/Cargo.toml index 2da2fa56..e3b1b0d4 100644 --- a/core/types/Cargo.toml +++ b/core/types/Cargo.toml @@ -15,5 +15,5 @@ thiserror = { workspace = true } nohash-hasher = { workspace = true } [features] -default = [] +default = ["arbitrary_precision"] arbitrary_precision = ["serde_json/arbitrary_precision"]