跟着 Rust 官方的 “The Rust Programing Language” 中的 第12章 编写的一个小程序, 使用指定的关键字过滤文本文件内容, 并输出相关的行.
先准备 Rust 环境
然后下载代码
git clone https://github.com/jason1105/minigrep.git
尝试运行一下
``` cd minigrep cargo run
```
还可以编译成 exe
bash cargo build --release