2 个版本
0.1.1 | 2022年4月8日 |
---|---|
0.1.0 | 2022年4月8日 |
634 在 Cargo 插件
10KB
58 代码行
cargo-ex
此 cargo 子命令可以通过模糊搜索器轻松执行 cargo run --example
。
安装
cargo安装 cargo-ex
用法
在 examples
目录下有一些文件。
$ ls -1 examples
hello-cargo.rs
hello-example.rs
hello-rust.rs
hello-wave.rs
当您执行 cargo ex
时,它会在 examples
目录中使用模糊搜索器显示文件。
$ cargo ex
hello-rust.rs
hello-cargo.rs
> hello-example.rs
hello-wave.rs
4/4 1/0
> heo
然后您按回车键执行 cargo run --examples
。
$ cargo ex
Finished dev [unoptimized + debuginfo] target(s) in 0.12s
Running `target/debug/examples/hello-example`
Hello example!
依赖项
~11–21MB
~290K SLoC