Following udemy's rust-lang course
I will use vscode on m1 mac, and do most of stuff thru terminal.
The lecture use IntelliSense IDE and use some of its features.
cargo new
to make new project
cargo build
to build your code
cargo run
(will build if no target is available) to run your code
lot like npm
cargo is package manager, like npm is to javascript
cargo.toml
is like package.json
of npm
src
, target
folders are convention that needs to be followed
rustc
can be used instead, but easier to use cargo
IMO rustc
is like gcc
from C programming
I followed the hello-rust tutorial from official homepage, and I got this cute crab