mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-22 18:55:29 +03:00
115 lines
3 KiB
Diff
115 lines
3 KiB
Diff
Patch-Source: https://github.com/stepchowfun/docuum/pull/233
|
|
--
|
|
From f40a31dec279c073e18d86432df8cec4d072ac7b Mon Sep 17 00:00:00 2001
|
|
From: Jakub Jirutka <jakub@jirutka.cz>
|
|
Date: Wed, 21 Sep 2022 16:39:22 +0200
|
|
Subject: [PATCH 1/2] Disable unnecessary regex features
|
|
|
|
This reduces the size of the docuum binary by ~20 %.
|
|
---
|
|
Cargo.toml | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/Cargo.toml b/Cargo.toml
|
|
index 30cf381..3f92e01 100644
|
|
--- a/Cargo.toml
|
|
+++ b/Cargo.toml
|
|
@@ -22,7 +22,7 @@ scopeguard = "1"
|
|
serde_json = "1.0"
|
|
serde_yaml = "0.8"
|
|
tempfile = "3"
|
|
-regex = "1.5.4"
|
|
+regex = { version = "1.5.4", default-features = false, features = ["std", "unicode-perl"] }
|
|
|
|
[target.'cfg(target_os = "linux")'.dependencies]
|
|
sysinfo = "0.23.5"
|
|
|
|
From 1dc48a1524b8f5f909fc7ffbdf85f0b6fa63e982 Mon Sep 17 00:00:00 2001
|
|
From: Jakub Jirutka <jakub@jirutka.cz>
|
|
Date: Wed, 21 Sep 2022 16:42:57 +0200
|
|
Subject: [PATCH 2/2] Disable unnecessary env_logger features
|
|
|
|
This reduces the size of the docuum binary by another ~14 %.
|
|
---
|
|
Cargo.lock | 25 -------------------------
|
|
Cargo.toml | 2 +-
|
|
2 files changed, 1 insertion(+), 26 deletions(-)
|
|
|
|
diff --git a/Cargo.lock b/Cargo.lock
|
|
index 6e210e9..814ad56 100644
|
|
--- a/Cargo.lock
|
|
+++ b/Cargo.lock
|
|
@@ -2,15 +2,6 @@
|
|
# It is not intended for manual editing.
|
|
version = 3
|
|
|
|
-[[package]]
|
|
-name = "aho-corasick"
|
|
-version = "0.7.18"
|
|
-source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
-checksum = "1e37cfd5e7657ada45f742d6e99ca5788580b5c529dc78faf11ece6dc702656f"
|
|
-dependencies = [
|
|
- "memchr",
|
|
-]
|
|
-
|
|
[[package]]
|
|
name = "ansi_term"
|
|
version = "0.11.0"
|
|
@@ -209,9 +200,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
checksum = "a19187fea3ac7e84da7dacf48de0c45d63c6a76f9490dae389aead16c243fce3"
|
|
dependencies = [
|
|
"atty",
|
|
- "humantime",
|
|
"log",
|
|
- "regex",
|
|
"termcolor",
|
|
]
|
|
|
|
@@ -235,12 +224,6 @@ dependencies = [
|
|
"libc",
|
|
]
|
|
|
|
-[[package]]
|
|
-name = "humantime"
|
|
-version = "2.1.0"
|
|
-source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
-checksum = "9a3a5bfb195931eeb336b2a7b4d761daec841b97f947d34394601737a7bba5e4"
|
|
-
|
|
[[package]]
|
|
name = "itoa"
|
|
version = "0.4.7"
|
|
@@ -274,12 +257,6 @@ dependencies = [
|
|
"cfg-if",
|
|
]
|
|
|
|
-[[package]]
|
|
-name = "memchr"
|
|
-version = "2.4.0"
|
|
-source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
-checksum = "b16bd47d9e329435e309c58469fe0791c2d0d1ba96ec0954152a5ae2b04387dc"
|
|
-
|
|
[[package]]
|
|
name = "memoffset"
|
|
version = "0.6.5"
|
|
@@ -447,8 +424,6 @@ version = "1.5.5"
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
checksum = "1a11647b6b25ff05a515cb92c365cec08801e83423a235b51e231e1808747286"
|
|
dependencies = [
|
|
- "aho-corasick",
|
|
- "memchr",
|
|
"regex-syntax",
|
|
]
|
|
|
|
diff --git a/Cargo.toml b/Cargo.toml
|
|
index 3f92e01..b3df361 100644
|
|
--- a/Cargo.toml
|
|
+++ b/Cargo.toml
|
|
@@ -16,7 +16,7 @@ byte-unit = "4"
|
|
chrono = "0.4"
|
|
colored = "2"
|
|
dirs = "3"
|
|
-env_logger = "0.8"
|
|
+env_logger = { version = "0.8", default-features = false, features = ["termcolor", "atty"] }
|
|
log = "0.4"
|
|
scopeguard = "1"
|
|
serde_json = "1.0"
|