minigrep:用Rust编写的grep命令的小版本

时间:2021-04-27 12:52:02
【文件属性】:
文件名称:minigrep:用Rust编写的grep命令的小版本
文件大小:14KB
文件格式:ZIP
更新时间:2021-04-27 12:52:02
rust-lang grep-like Rust Minigrep 要求 应该安装在您的系统中。 安装 git clone https://github.com/subhojit777/minigrep.git cd minigrep cargo build --release 用法 ./target/release/minigrep - < options> nemo find-nemo-the-movie.txt 示例./target/release/minigrep -i nemo find-nemo-the-movie.txt 允许的选项 i - Case-insensitive. w - Exact match. 文献资料 cargo doc --no-deps --open 运行测试 cargo test 笔记 这并不是替换旧的类似grep的旧命令的好地方。 这是为了学习Rust-lang而编写的。 开源背后的动机 实际上
【文件预览】:
minigrep-master
----LICENSE-MIT(1023B)
----Cargo.toml(151B)
----test-data()
--------test.txt(19B)
----Cargo.lock(5KB)
----src()
--------minigrep()
--------lib.rs(4KB)
--------bin()
----LICENSE-APACHE(11KB)
----README.md(1KB)
----tests()
--------minigrep.rs(1KB)
----.gitignore(322B)

网友评论