From 6c4013fa763a2f1edfcc15fb42c41a6cb585b6d3 Mon Sep 17 00:00:00 2001 From: Ben Bridle Date: Thu, 21 Aug 2025 12:05:25 +1200 Subject: Gate large features of fancy-regex behind feature flags The unicode feature increases binary size by close to a megabyte, and the perf feature also increases binary size while making no noticeable difference to performance. --- Cargo.toml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 3a8b309..ff860ff 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -4,4 +4,8 @@ version = "1.0.0" edition = "2024" [dependencies] -fancy-regex = "0.14.0" +fancy-regex = { version = "0.14.0", default-features = false, features = ["std"] } + +[features] +unicode = ["fancy-regex/unicode"] +perf = ["fancy-regex/perf"] -- cgit v1.2.3-70-g09d2