Skip to content

Commit 51ac8c6

Browse files
committed
Slim down binary size
1 parent 207b7f4 commit 51ac8c6

15 files changed

Lines changed: 712 additions & 534 deletions

File tree

Cargo.lock

Lines changed: 11 additions & 256 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,11 @@ keywords = ["linux", "process", "procfs", "debugging", "cli"]
1111
categories = ["command-line-utilities", "development-tools::debugging"]
1212

1313
[dependencies]
14-
clap = { version = "4.5", features = ["derive"] }
14+
lexopt = "0.3.1"
1515
nix = { version = "0.31", features = ["event", "fs", "process", "signal", "socket"] }
1616

1717
[build-dependencies]
18-
clap = { version = "4.5", features = ["derive"] }
19-
clap_mangen = "0.2.31"
18+
roff = "1.0.0"
2019

2120
[profile.release]
2221
opt-level = "s" # Optimize for binary size.
@@ -25,6 +24,7 @@ codegen-units = 1 # Tends to produce the smallest binaries (tradeoff: slower bui
2524
panic = "abort" # Save size. We don't need unwinding anyway.
2625
debug = "limited" # Debug info without type or variable-level information, making backtraces meaningful without the full size hit.
2726
strip = "symbols" # Strips symbol table to reduce size, while still leaving enough info for backtraces.
27+
2828
# TODO is there any way to remove the ability to display backtraces? This would
2929
# likely shave another 50K or so off the binary size, and may not be necessary
3030
# if systems are typically configured to dump core on SIGABRT

0 commit comments

Comments
 (0)