Setup rust development environment
Having development environment is not only finish by installing a compiler. To do fast and efficient work-flow, developers also need tools to help them produce high quality code efficiently. In this article I will share how to get your first rust complete development environment with visual studio code.
Installing rust
Run in your terminal :
curl https://sh.rustup.rs -sSf | sh
Follow the instruction
Put rust to your env
add `source $HOME/.cargo/env` to your shell configuration
Installing editor IDE or editor
Download visual studio code if you don't have, it's good for you I promise.
1. Install `rusty code` extension, from extension pane at the left side bar.
2. Install other tools
run in your terminal
"cargo install racer" for code completion
"cargo install rustfmt" for code formating
"cargo install rustsym" for getting symbol
Alternatively you can open file with .rs extension, then at the bottom right there will be text informing that there are several missing tools for rust, click it and install.
Now you have complete rust development environment
Nice tip! :)
Backend Engineering Manager
9ybut i don't have visual studio, can i still use it?