-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Would you please strip for release assets? #276
Comments
What do you mean? Release packages only contains executable binaries. |
I mean that maybe we could use Example:
You can see after |
I am going to wait for cargo's strip option: rust-lang/cargo#3483 to be stablized. Calling Also, stripped binaries will not be able to show stacktrace when panicking. (But I have already set panic to be |
cargo-features = ["strip"]
[profile.release]
strip = "symbols" This will require a nightly build of |
strip with UPX on top? ;P |
@Kein Why would you ever want to use UPX? To increase memory usage further because now it also needs to be uncompressed in memory? |
Disabling trust-dns (which is not a performance problem for the client sslocal) and switching from log4rs to stderrorlog (who needs a full-blown logging framework for a socks client?) I get a Windows sslocal binary that's 2.7 MB vs the almost 9MB in the release. I think this could be reduced further still, but would require going into the dependencies and patching them to make some of their dependencies optional. |
That is pretty sweet. Got a fork or PR? |
You could just build it without the |
Some guides about how to minimize target files of Rust: |
Hi @zonyitoo . Seems latest release still not strip ? $ file ss*
sslocal: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), statically linked, with debug_info, not stripped
ssmanager: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), statically linked, with debug_info, not stripped
ssserver: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), statically linked, with debug_info, not stripped
ssservice: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), statically linked, with debug_info, not stripped
ssurl: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), statically linked, with debug_info, not stripped |
Yes. The The v1.13 release is to make shadowsocks-rust to be built with stable Rust, so I temporary disable the option until 1.59 releases. |
I think you can strip for release assets so that thin the tar package.
The text was updated successfully, but these errors were encountered: