Last active
June 29, 2022 10:36
-
-
Save CdTCzech/1259c5fdff7bf9fa05cb001fcdf96fb8 to your computer and use it in GitHub Desktop.
Install rust and rust-analyzer (requires git, rustup and npm)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| REM Uninstall toolchains | |
| rustup toolchain uninstall stable | |
| rustup toolchain uninstall beta | |
| rustup toolchain uninstall nightly | |
| REM Set nightly as default and install default profile with rust-src | |
| rustup set profile default | |
| rustup toolchain install nightly | |
| rustup default nightly | |
| rustup component add rust-src | |
| REM Clone rust, book, clippy, fmt | |
| git clone https://github.com/rust-lang/book.git | |
| git clone https://github.com/rust-lang/rust-clippy.git | |
| git clone https://github.com/rust-lang/rust.git | |
| git clone https://github.com/rust-lang/rustfmt.git | |
| REM Install rust-analyzer VS Code extension | |
| git clone https://github.com/rust-analyzer/rust-analyzer | |
| pushd rust-analyzer | |
| cargo xtask install | |
| popd | |
| REM download my Rust repositories | |
| git clone https://github.com/CdTCzech/advent_of_code_2019.git | |
| REM Update rust just in case | |
| rustup update |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment