100% binary size increase (7.7M to 15M) when clap 3 added as a dep #3339
osa1
started this conversation in
Show and tell
Replies: 1 comment
-
Interesting. When we measured this (default release settings), clap only added 600KB. I'm assuming that We have #1365 which will be a focus moving forward with efforts like
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Note: this is with
debug=true
in release profile.I have an application with 145 dependencies (without clap) that builds to 7.7M release binary (LTO enabled).
If I add clap
and this CLI parser:
The binary size increases from 7.7M to 15M. I tried clean build and got the same result.
It's a bit strange that clap adds 7.3M to a 6779 sloc (no comments or whitespace) app with 145 dependencies (without clap), so wanted to report it here.
cargo bloat --release
output (non-clap and non-std functions snipped):I just realized I have
debug=true
in release profile. Withoutdebug=true
it adds 30%, from 2.3M to 3M.Beta Was this translation helpful? Give feedback.
All reactions