1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-14 03:39:53 +03:00
aports/community/handlr/strip-regex-features.patch
Jakub Jirutka a7ba321962 community/handlr: upgrade to 0.10.0 and change upstream
The original upstream is not maintained anymore.
2024-04-01 21:16:13 +00:00

25 lines
788 B
Diff

Patch-Source: https://github.com/Anomalocaridid/handlr-regex
--
From 6f2e2e791d4681d6fa3d148deb23dc060d492a5f Mon Sep 17 00:00:00 2001
From: Jakub Jirutka <jakub@jirutka.cz>
Date: Mon, 1 Apr 2024 22:33:31 +0200
Subject: [PATCH] Remove unneeded regex features
Reduces binary size by ~25%.
---
handlr-regex/Cargo.toml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/handlr-regex/Cargo.toml b/handlr-regex/Cargo.toml
index 5f2a444..f938f27 100644
--- a/handlr-regex/Cargo.toml
+++ b/handlr-regex/Cargo.toml
@@ -25,7 +25,7 @@ xdg-mime = "0.3.3"
freedesktop_entry_parser = "1.1.1"
once_cell = "1.7.2"
aho-corasick = "0.7.15"
-regex = "1"
+regex = { version = "1", default-features = false, features = ["std", "unicode-perl"] }
tabled = "0.15.0"
serde_json = "1.0"