Difficulty: Beginner
Estimated Time: 10 minutes

Rust Step by Step

By Josselin CHEVALAY

First project with cargo

Cargo in rrust's build system and package manager. For build a binary project or libraries this tools is most of to do that. Here we explain to do that.

Goals

  • create new project with cargo
  • manage dependencies with cargo

to begin that you need install rust toolchain.

Have fun !

#END

Nice ! now you understand cargo and workflow about building and extern crate. In next chapter we will begin to talk about langage.

rust by step : create project with cargo

Step 1 of 3

Step 1

Before to begin

Install rust toolchain and create projects directory

curl https://sh.rustup.rs -sSf | sh -s -- -y

source $HOME/.cargo/env

mkdir $HOME/projects && cd $HOME/projects

now we can begin cargo's part !