Member-only story
My journey of learning Rust
4 min readOct 31, 2020
A few weeks ago I started to learn Rust programming language and taking some notes of things that I find interesting, especially for me who came from JavaScript world.
Here I’m gonna write those notes down, mostly for future myself ;) but it might be also useful for someone else who wants to learn Rust.
As I’m still learning, I will keep updating this post.
Day 1
- in Rust we
compile
andrun
a program as separate steps, unlike languages such as Javascript or Ruby! - “Cargo” is Rust package manager ( like yarn/npm for node apps )
- Cargo config file -
a config file similar to package.json for node apps
- written in TOML language ( I don’t know why but for some reasons I loved what TOML stands for “Tom’s Obvious Minimal Language” ) - in Rust packages/dependencies are called
Crates
. - These are some of the cargo commands we can use:
// To create a new Rust project we can run, this will creates a new directory called my-awesome-projectcargo new my-awesome-project// Compile & build an executablecargo build// Compile, build an executable and run itcargo run