-
-
Notifications
You must be signed in to change notification settings - Fork 12.8k
rust: add rust-src #66315
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
rust: add rust-src #66315
Conversation
Not sure why the tests hanged, I tested with |
We have some CI trouble at the moment. One question is: why isn't it installed by default by |
I think my initial comments are a little misleading. The problem is, unlike other things such as Or let's see how others do this. Arch's If adding |
This sounds like an excellent reason to me.
My best guess, having looked at their docs:
I think what upstream decides to ship with their own package (i.e. through [1] E.g. the detailed guide to building from source is contained in their "Guide to Rustc Development". Their abridged instructions in the repo README suggest cloning the master branch of the Rust repo. Moreover, as mentioned already, Apologies for writing a novel. Wasn't my intention. |
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
@kidonng, if you're still interested in this PR, please rebase it against master, and give rust a revision bump. If not, just close it again. Thanks. |
Thank you @carlocab! |
brew install --build-from-source <formula>
, where<formula>
is the name of the formula you're submitting?brew test <formula>
, where<formula>
is the name of the formula you're submitting?brew audit --strict <formula>
(after doingbrew install <formula>
)?This PR adds
rust-src
torust
formula, which is required by some third-party programs (such asrust-analyzer
).Default installation with
rustup
comesrust-src
(shown withrustup component list --installed
):While Homebrew's installation is approximately equivalent to:
Since
rust-src
is just 37MB (as of Rust 1.48.0), andgo
ships withsrc
too (though that's a little different from Rust), I think it's worth adding it to Homebrew's installation as well.Not sure if there are any environment variables or build flags for installing it with official build scripts, but I guess this won't hurt since it's just moving files around.