Expand description
minigrep library
Small example library used by the minigrep binary. Provides argument parsing and
simple line-oriented search (case-sensitive and case-insensitive).
Quick publishing checklist:
- Ensure
cargo testpasses. - Update Cargo.toml: authors, description, license, repository, readme, and version.
- Ensure README.md exists and is referenced in Cargo.toml.
- Run
cargo publish --dry-runto validate before publishing.
Usage (library):
- Call
Config::new(&args)to parse CLI args. - Call
run(config)to execute a search and print matching lines.
Structs§
- Config
- Configuration for a minigrep run.
Functions§
- run
- Run the search using the provided configuration.