1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-25 20:25:28 +03:00
aports/testing/mdcat/minimize-size.patch
prspkt 5edc80fe30 testing/mdcat: upgrade to 0.27.1
- Fetch crates in prepare stage.
 - Patch to minimize binary size.
 - Add shared-mime-info runtime dependency, also required for
   successfully running the test suite.
 - Update url and source links to new upstream.
2022-04-25 19:49:09 +00:00

12 lines
255 B
Diff

--- a/Cargo.toml
+++ b/Cargo.toml
@@ -57,6 +57,9 @@
[profile.release]
# Enable LTO for release builds; makes the binary a lot smaller
lto = true
+codegen-units = 1
+opt-level = "z"
+panic = "abort"
[package.metadata.release]
allow-branch = ["main"]