| Crates.io | minigrep_pack |
| lib.rs | minigrep_pack |
| version | 0.1.1 |
| created_at | 2025-10-05 06:45:40.730072+00 |
| updated_at | 2025-10-05 06:49:16.074316+00 |
| description | A small clip clone of minigrep |
| homepage | |
| repository | |
| max_upload_size | |
| id | 1868694 |
| size | 8,698 |
Small example crate and binary that demonstrate a simple line-oriented search (a micro "grep" clone).
Build and run the binary with:
cargo run -- <query> <filename>
Example:
cargo run -- foo example.txt
Programmatic usage:
minigrep_pack::Config::new(&args) to parse CLI-style arguments.minigrep_pack::run(config) to perform the search and print matching lines.Run the test suite with:
cargo test
cargo test passes.Cargo.toml contains correct metadata (authors, description, license, repository, readme).version in Cargo.toml for a new release.cargo publish --dry-run to validate before publishing.MIT