lec1 Rust introduction

실리콘·2022년 10월 11일
0

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

profile
software engineer

0개의 댓글