Notgnoshi / dotfiles

Personal dotfiles and shell scripts

Home Page:https://agill.xyz

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Install Rust

Notgnoshi opened this issue · comments

Install rust, cargo, rustfmt, rust analyzer, and appropriately add to ~/.bashrc

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
# rust-analyzer requires the nightly toolchain
rustup +nightly component add rust-analyzer-preview
rustup completions bash >~/.bash_completion.d/rustup
rustup completions bash cargo >~/.bash_completion.d/cargo

Note that installing rust-analyzer with rustup requires fixing the path ALE uses: a71b2cd