lchagnoleau / Rust-Book-Training

My personal experimentation while reading the Rust Book

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Rust-Book-Training

My personal experimentation while reading the Rust Book

Getting started

1.2 Hello world

main.rs:

fn main() {
    println!("Hello World!");
}

Format it:

rustfmt main.rs

Compile it:

rustc main.rs

1.3 Hello Cargo

cargo new hello_cargo
cd hello_cargo

# Debug
cargo check
cargo build
cargo run

#Release
cargo build --release
cargo run --release

About

My personal experimentation while reading the Rust Book


Languages

Language:Rust 100.0%