phanupongr / rust-learning

Workshops source code from rust book (https://doc.rust-lang.org/book/)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Rust Learning

This repo contains source code based on rust book's workshop for personal Rust learning

Rust Notes

useful commands

cargo new <project_name> # create new project with .git and .gitignore
cargo build # compile
cargo run # compile and run

# To execute bin
./target/bin/<project_name>

# Check if code is compilable
cargo check

# Production release
## it will create bin in target/release instead
cargo build --release

# Update dependencies patch version
cargo update

# Open document
cargo doc --open

About

Workshops source code from rust book (https://doc.rust-lang.org/book/)


Languages

Language:Rust 100.0%