Hi Ed,
On Wed, Nov 20, 2024 at 09:07:32PM +0000, Ed Neville via BitFolk Users wrote:
On 2024-11-20 15:25+0000, Andy Smith via BitFolk Users
wrote:
Luckily it does compile down to a 7MiB binary. Of
course even that is
bigfor what it is, but such is the way with static Rust and Go binaries.
Was that after running 'strip' on the binary? I find a lot can be cut
out with strip.
I thought that `cargo build --release` also ran strip but apparently not:
$ ls -lah target/release/ptrcheck
-rwxr-xr-x 2 andy andy 7.1M Nov 19 20:55 target/release/ptrcheck
$ strip target/release/ptrcheck
$ ls -lah target/release/ptrcheck
-rwxr-xr-x 2 andy andy 5.8M Nov 20 21:14 target/release/ptrcheck
Is there any downside to distributing stripped binaries?
(Assuming someone wanting to do debugging would build it themselves in a
debug build.)
Thanks,
Andy
--
https://bitfolk.com/ -- No-nonsense VPS hosting