Install script should put rust path in ~/.zprofile on macOS
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 52/100
Research direction
Start with the installer entry point at https://sh.rustup.rs and locate the logic that adds . "$HOME/.cargo/env" to ~/.profile. Reproduce the documented installation on macOS, then verify that the setup uses ~/.zprofile there while behavior on other platforms remains unchanged.
Written by the indexing model from the issue text.
Description
Verification
- I searched for recent similar issues at https://github.com/rust-lang/rustup/issues?q=is%3Aissue and found no duplicates.
- I am on the latest version of Rustup according to https://github.com/rust-lang/rustup/tags and am still able to reproduce my issue.
Problem
Running the installation script from the rust-lang.org install page on macOS adds . "$HOME/.cargo/env" to ~/.profile rather than ~/.zprofile where it needs to be to work.
Steps
- Run
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh - Restart Terminal, without manually sourcing the
~/.profilefile. - Rust will not run until
~/.profileis manually sourced or. "$HOME/.cargo/env"is moved to~/.zprofile.
Possible Solution(s)
Have the setup script add . "$HOME/.cargo/env" to ~/.zprofile instead of ~/.profile on macOS specifically.
Notes
No response
Rustup version
rustup 1.29.0 (28d1352db 2026-03-05)
Installed toolchains
stable-aarch64-apple-darwin
OS version
macOS Tahoe version 26.3.1 (a)
- Dominant language
- Rust
- Stars
- 7k
- Forks
- 1.1k
- Avg merge
- 1d 1h
- Merged PRs (30d)
- 46
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from rust-lang/rustup
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
E-easy enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
enhancement O-shell
Difficulty 1/5 Under an hour Newbie friendliness 72/100
-
enhancement
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
All issues in rust-lang/rustup
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
state:needs triage
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
zed-industries/zed#64680 · 2 comments ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
RustPython/RustPython#8802 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
TheLarkInn/aipm#2390 ·