Setup rust development environment
Rust Logo

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

Next step, lets learn about rust here :

http://rustbyexample.com/

https://doc.rust-lang.org/book/

M Fhadil

Backend Engineering Manager

9y

but i don't have visual studio, can i still use it?

Like
Reply

To view or add a comment, sign in

More articles by Gian Giovani

  • Managing Incident : Incident Handling

    From time to time incidents will happen, especially in a complex system. Making sure that an incident can be handled…

  • gRPC is cool. Then what?

    You can also read this in my blog What is the most popular RPC right know? I would say restful with JSON. It is…

    3 Comments
  • TCP Socket Implementation In Golang

    You can also read this on my blog. Golang is surely my first to go language to write web application, it hides many…

  • Upgrading elasticsearch 2.x to 5.x

    Last year elasticsearch 5.0 released to public and 5.

    5 Comments
  • Javascript compiler optimization

    JavaScript Compiler optimization in browser is quite unique, it has to take account of many things C compiler doesn't…

    3 Comments

Explore content categories