book

Crates.iobook
lib.rsbook
version0.1.0
created_at2025-07-17 03:47:59.630052+00
updated_at2025-07-17 03:47:59.630052+00
descriptionA fun game where you guess what number the computer has chosen.
homepagehttps://www.dart.xin
repositoryhttps://github.com/zwdart/book
max_upload_size
id1757042
size12,044
(zwdart)

documentation

https://docs.rs/book

README

MiniGrep

cmd build

cargo build --release

./target/release/minigrep body assets/poem.txt >> runtime/output.txt

cmd run

cargo run -- 北冥 assets/poemchinese.txt cargo run -- 庄子 assets/poemchinese.txt

  • one cargo run -- frog assets/poem.txt

  • multi cargo run -- body assets/poem.txt

  • no cargo run -- monomorphization assets/poem.txt

  • 带环境变量 IGNORE_CASE=1 cargo run -- to assets/poem.txt

  • 将错误信息保存到文件 cargo run > output.txt

  • 将获取结果保存到文件中,覆盖 cargo run -- to assets/poem.txt > runtime/output.txt

  • 追加内容 cargo run -- to assets/poem.txt >> runtime/output.txt

vscode

  • debug 调试 CodeLLDB

生成文档

cargo doc --open

Commit count: 0

cargo fmt