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

Standalone binaries for distribution #22695

Closed
e-oz opened this Issue Feb 23, 2015 · 2 comments

Comments

Projects
None yet
2 participants
@e-oz
Copy link

e-oz commented Feb 23, 2015

After reading comments to recent topics on HN, both are about new tools, written in Rust https://news.ycombinator.com/item?id=9087108, https://news.ycombinator.com/item?id=9088805 , I got answer from @steveklabnik that it's impossible currently to create standalone binary from a Rust programm.
It's pretty important for tools distribution, so please consider to spend some time on this issue.
By "standalone" I mean ability to just publish few binaries for most popular systems, like OS X, Linux, Win, Other (1 file per OS) and users will not have to download something else.
As an option, it could be some self-extracting installer (if it's absolutely impossible to link statically all libs into 1 executable file).

@steveklabnik

This comment has been minimized.

Copy link
Member

steveklabnik commented Feb 23, 2015

Thanks @jamm . We try to keep the bug tracker to 'bugs only', so I'm going to give this a close. This is something that we care about, and we do have plans to make it better. You may want to post this to http://internals.rust-lang.org/ if you'd like to talk about it more :)

That being said, it's not "impossible currently to create a standalone binary from a Rust program." It's that glibc cannot be statically linked. Everything else can be.

@e-oz

This comment has been minimized.

Copy link
Author

e-oz commented Feb 23, 2015

It's enough to know that you care about it :) Hope this issue will be useful at least for future readers with same question.

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.