Skip to content

phamvmnhut/rust-me

Repository files navigation

Cargo


cargo init --bin | --lib

-> create new project

cargo new <name> --lib

-> new a lib

cargo run

-> run this project

cargo build --release

-> build release

Rust fmt


cargo fmt

-> format

rustfmt <file_path>

-> format

rustfmt src/*.rs

-> format file is rust

About

learn rust when i learn

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published