minigrep_pack

Crates.iominigrep_pack
lib.rsminigrep_pack
version0.1.1
created_at2025-10-05 06:45:40.730072+00
updated_at2025-10-05 06:49:16.074316+00
descriptionA small clip clone of minigrep
homepage
repository
max_upload_size
id1868694
size8,698
Ayotunde Ajayi (Joel-Ajayi)

documentation

README

minigrep_pack

Small example crate and binary that demonstrate a simple line-oriented search (a micro "grep" clone).

Quick start

Build and run the binary with:

cargo run -- <query> <filename>

Example:

cargo run -- foo example.txt

Library usage

Programmatic usage:

  • Call minigrep_pack::Config::new(&args) to parse CLI-style arguments.
  • Call minigrep_pack::run(config) to perform the search and print matching lines.

Testing

Run the test suite with:

cargo test

Publishing checklist

  • Ensure cargo test passes.
  • Verify Cargo.toml contains correct metadata (authors, description, license, repository, readme).
  • Update version in Cargo.toml for a new release.
  • Run cargo publish --dry-run to validate before publishing.

License

MIT

Commit count: 0

cargo fmt