Getting Started with Rust
1.) Install Rust from rustup.rs
- If on Windows, you’ll need to install the
Visual C++ 2015 Build Toolsfrom here:
http://landinghub.visualstudio.com/visual-cpp-build-tools
2.) Install some common and useful tools:
cargo install racer
cargo install rustsym
cargo install rustfmt
cargo install ripgrep
3.) Add the Rust documentation
rustup component add rust-doc
4.) Install the Language Server (for IDE-like features in editors):
rustup self update
rustup update nightly
rustup component add rls --toolchain nightly
rustup component add rust-analysis --toolchain nightly
rustup component add rust-src --toolchain nightly
5.) Install Visual Studio Code from:
https://code.visualstudio.com/
6.) Install the Rust vscode extension by KalitaAlexey:
How to install extensions in vscode: https://code.visualstudio.com/docs/editor/extension-gallery
7.) Go to File->Preferences->Settings and add the following lines to your user settings on the right hand side to use the language server:
"rust.rls": {
"executable": "rustup",
"args": ["run", "nightly", "rls"],
"env": {
"RUST_LOG": "rls=debug"
}
}
8.) Begin learning Rust!
The official Rust Book can be found here:
And an up to date repository of various Rust learning resources can be found here:
Leave a Comment