-
Notifications
You must be signed in to change notification settings - Fork 892
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
Release binaries dynamically links to rustc libraries #5805
Comments
Thanks for reaching out. I'll answer your questions inline below, but I'm also going to close as this is a duplicate of other issues/PRs
Once upon a time, yes they were, though not as a preferred/primary means of acquiring rustfmt.
Please see discussion in #5761 as well as #5675 (comment) and #5675 (comment) for more info. The dynamic linkage comes from upstream rustc components, and isn't something we can control. I don't think we're likely to continue including binaries in the GitHub releases, not only because it's now impossible (or at least difficult) to ship fully self-contained binaries, but also just for practical reasons. None of the other official tools ship their own binaries outside the official Rust distribution channels, and I'm not aware of any realistic use cases where a user would want a rustfmt binary and not want/need to have a Rust toolchain |
I see, thanks for explaining! Would you completely rule out the option of bundling these libraries in the release archive and
This is perhaps the wrong place to ask, but do you know if this will this apply to Just to make sure I'm not missing something - by Rust distribution channel you mean the |
Apologies for the delayed response. This got buried pretty deeply in my notification inbox
If you or someone else was willing to submit and test a PR then I'd be willing to try to support it for the next few releases as a tactical measure. However, long term this is still something that's going to have to go away. Rustfmt was unique in doing this in the first place (you'll not find binary distributions of clippy, miri, and the other official tools), and trying to support this is a big part of what complicates our release process that in turn has some knock-on effects that slow down other aspects of rustfmt development/delivery
I don't think so, although I can't speak authoritatively on the subject. My understanding is that RA uses its own front-end vs rustc's internal modules like rustfmt and the other tools do, so I suspect RA isn't as effect by such upstream changes made in the compiler.
Correct, getting the tools as part of a toolchain via rustup is really the "official" way to get rustfmt |
Hello! Starting with the
1.5.3
release it seems like the provided binaries dynamically links to rustc libraries:Are the release binaries meant for public consumption or are they merely just an artifact of the CI process? If the new links wasn't intentional and were to be fixed, are there any drawbacks of using these instead of managing installation via
rustup component
?The text was updated successfully, but these errors were encountered: