Skip to content

Commit 53cab44

Browse files
committed
Use strip = true to shrink the binary.
Also set `rust-version` to 1.59, the earliest version that supports `strip`.
1 parent cb6ec63 commit 53cab44

1 file changed

Lines changed: 13 additions & 1 deletion

File tree

Cargo.toml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ repository = "https://github.com/nnethercote/counts"
1010
keywords = ["cli", "profiling"]
1111
categories = ["command-line-utilities", "development-tools::profiling"]
1212
edition = "2021"
13+
rust-version = "1.59"
1314

1415
[dependencies]
1516
regex-lite = "0.1"
@@ -21,6 +22,17 @@ predicates = "3.0"
2122
tempfile = "3.0"
2223

2324
# These options make the binary a bit smaller.
25+
# Data from v1.0.3, 2023-07-28:
26+
# --------------------------------------
27+
# config Linux Mac
28+
# --------------------------------------
29+
# base 4632976 773728
30+
# + lto = true 2340584 676192
31+
# + panic = abort 2313104 639032
32+
# + strip = "debuginfo" 486936 536496
33+
# -> strip = true 486968 464816
34+
# --------------------------------------
2435
[profile.release]
25-
panic = "abort"
2636
lto = true
37+
panic = "abort"
38+
strip = true

0 commit comments

Comments
 (0)