Could rust
become keg-only and rustup
become a normal formula?
#5928
Replies: 3 comments 3 replies
-
I think that would complicate the use case where some new user thinks "I want to install rust" a lot. I'd be opposed to this change for that reason, it is simplifying the workflow of knowledgeable users and complicating the workflow of new ones. |
Beta Was this translation helpful? Give feedback.
-
Just curious, wouldn't it be easy for you to just add this to your shell init script:
|
Beta Was this translation helpful? Give feedback.
-
As another argument for making Homebrew Rust keg-only: Homebrew’s package includes a toolchain for the host OS/architecture only. If you cross-compile software for other architectures, then that’s no good. If you build web applications in Rust, then you’re cross-compiling to WASM. If you build firmware for embedded devices in Rust, then you’re cross-compiling for that… and probably running a specific The alternative is if there was a way to tell Homebrew to always unlink certain packages. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Output of
brew config
Description of issue
I have two related problems:
brew install --HEAD fish
, it installsrust
as a dependency as expected. However, this means that runningcargo
then runs Homebrew's Rust instead of the one I've installed myself via Rustup. I have to remember to runbrew unlink rust
every time to fix it.rustup
formula since it's keg-only and requires updating the PATH. I end up using manually installed rustup.I don't know if this qualifies as a bug, but both problems would be solved if the
rust
formula became keg-only (since it seems most appropriately used as a built-time dependency for other formulas) andrustup
became a normal formula (since it's more useful for a Rust developer who will manually call these binaries).Is there any chance that this change could happen?
Beta Was this translation helpful? Give feedback.
All reactions