create new package: cargo new hello_world --bin (binary)(default)/--lib (library)
build:
cargo build
./target/debug/hello_world
build & run project in one step: cargo run
check code for compilation: cargo check
optimisation & release: cargo build --release
testing: cargo test
lib.rs: modify Cargo.toml
case insensitive search:
$env:CASE_INSENSITIVE=""
$env:CASE_INSENSITIVE=1
cargo run to poem.txt
output to output.txt:
cargo run to poem.txt > output.txt
Rust book