summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Bridle <ben@derelict.engineering>2025-08-21 12:05:25 +1200
committerBen Bridle <ben@derelict.engineering>2025-08-21 12:05:53 +1200
commit6c4013fa763a2f1edfcc15fb42c41a6cb585b6d3 (patch)
treea2ea08e0cfc47c00bc139efb2e4366824f6c9bc6
parent0e9fe32e7439a597a49f9c36c56a26726100b434 (diff)
downloadhighlight-6c4013fa763a2f1edfcc15fb42c41a6cb585b6d3.zip
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.
-rw-r--r--Cargo.toml6
1 files changed, 5 insertions, 1 deletions
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"]