A short note on some of the key concepts of rust.
File names with more than one word should be separated by an underscore.
main
function is the first code that runs in every executable rust program.
To compile, run rustc file_name.rs
and then ./file_name
to execute.
https://doc.rust-lang.org/book/ch01-03-hello-cargo.html
Create new project with cargo new project_name
Build with cargo build
. To build and run, cargo run
.
cargo check
for fast checking