kjiak / minigrep

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Minigrep

Build

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

Run

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

Credits

Rust book

About


Languages

Language:Rust 100.0%