/rust-exercises

Learning Rust by doing exercies

Primary LanguageRustMIT LicenseMIT

Learning Rust by building mini projects

Project 1: GRRS

Simple grep.

Usage docs:

From the project directory, run cargo run -- --help to see how to use.

Example:

projects/grrs$ cargo run hello fixtures/test-file.txt --case-sensitive --lines

Libraries used:

  • clap: For CLI
  • log: For logging
  • env_logger: Using environmental variables to set logging levels

Testing:

From the project directory, run cargo test