book 0.1.0

A fun game where you guess what number the computer has chosen.
Documentation
  • Coverage
  • 18.18%
    2 out of 11 items documented1 out of 7 items with examples
  • Size
  • Source code size: 11.57 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.34 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 11s Average build duration of successful builds.
  • all releases: 21s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • Repository
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • zwdart

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