diff options
author | Ben Bridle <ben@derelict.engineering> | 2025-08-21 12:05:25 +1200 |
---|---|---|
committer | Ben Bridle <ben@derelict.engineering> | 2025-08-21 12:05:53 +1200 |
commit | 6c4013fa763a2f1edfcc15fb42c41a6cb585b6d3 (patch) | |
tree | a2ea08e0cfc47c00bc139efb2e4366824f6c9bc6 | |
parent | 0e9fe32e7439a597a49f9c36c56a26726100b434 (diff) | |
download | highlight-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.toml | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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"] |