インストールしたい

$ brew install rust
$ brew list rust
/opt/homebrew/Cellar/rust/1.72.0_1/.bottle/etc/bash_completion.d/cargo
/opt/homebrew/Cellar/rust/1.72.0_1/bin/cargo
/opt/homebrew/Cellar/rust/1.72.0_1/bin/cargo-clippy
/opt/homebrew/Cellar/rust/1.72.0_1/bin/clippy-driver
/opt/homebrew/Cellar/rust/1.72.0_1/bin/rust-demangler
/opt/homebrew/Cellar/rust/1.72.0_1/bin/rust-gdb
/opt/homebrew/Cellar/rust/1.72.0_1/bin/rust-gdbgui
/opt/homebrew/Cellar/rust/1.72.0_1/bin/rust-lldb
/opt/homebrew/Cellar/rust/1.72.0_1/bin/rustc
/opt/homebrew/Cellar/rust/1.72.0_1/bin/rustdoc
...(省略)...

$ rustc --version
rustc 1.72.0 (5680fa18f 2023-08-23) (Homebrew)

$ cargo --version
cargo 1.72.0 (26bba4830 2023-08-26)

HomebrewでRustをインストールできます。 brew install rustをすると関連コマンドがインストールされます。 rustupはしなくてもよさそうですが、$HOME/.cargo/binへのPATH設定が必要です。

1# $HOME/.config/fish/config.toml
2# Rust
3fish_add_path $HOME/.cargo/bin