Skip to content
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

Option for rustc to build the smallest executable possible? #56687

Closed
ehouarn-perret opened this Issue Dec 10, 2018 · 1 comment

Comments

Projects
None yet
2 participants
@ehouarn-perret
Copy link

ehouarn-perret commented Dec 10, 2018

I was reading this link: https://lifthrasiir.github.io/rustlog/why-is-a-rust-executable-large.html and it kinda makes sense bout why Rust executable are relatively big without any optimization (actually a bit scary when I compare to Go executable which include a GC...) but still surprise that the --release flag does not make it that smaller out of the box.

I am wondering if there is any plan to bring another build (via an option or something not too obscure) option that would make the smallest possible Rust, out of the box?

@steveklabnik

This comment has been minimized.

Copy link
Member

steveklabnik commented Dec 10, 2018

Please post questions like this on internals.rust-lang.org; we keep the issue tracker for bugs only. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.