14 个版本
0.1.11 | 2023 年 11 月 7 日 |
---|---|
0.1.10 | 2023 年 11 月 6 日 |
0.1.1 | 2023 年 10 月 30 日 |
0.0.2 | 2023 年 10 月 29 日 |
269 在 Cargo 插件
99 每月下载量
2MB
1K SLoC
cargo-hoist
将 cargo 构建的二进制文件提升到作用域的简单 cargo 子命令。 https://github.com/refcell/cargo-hoist/labels/stable
安装 | 用户文档 | 包文档 | 参考 | 贡献 | 许可证
什么是 cargo-hoist?
cargo-hoist
是一个非常轻量级的 cargo 子命令,它使用全局 toml 缓存文件来缓存 cargo 构建的二进制文件。由于全局 toml 文件包含一个缓存的二进制文件路径列表,因此可以使用 hoist
子命令以各种方式操作 cargo 构建的二进制文件。
主要功能是将二进制文件拉入当前工作目录,使用 cargo hoist <bin name>
(默认,无标志的 hoist
命令)。要将二进制文件加载到路径中,可以运行 cargo hoist <bin name> --path
。
通常,记住二进制文件在 target/..
目录中的位置会增加开销。《cargo-hoist
》通过使用 --list
(或 -l
简写) 标志,使查找本地构建的二进制文件变得容易。
用法
使用 cargo 安装 cargo-hoist
。
cargo install cargo-hoist
CLI 标志
以下是 v0.1.11
的手动输出。要生成更新的输出,请运行 cargo hoist --help
。
Dead simple, memoized cargo subcommand to hoist cargo-built binaries into scope.
Usage: cargo hoist [OPTIONS] [COMMAND]
Commands:
hoist Hoist dependencies
list List registered dependencies
search Search for a binary in the hoist toml registry
nuke Nuke wipes the hoist toml registry
register Registers a binary in the global hoist toml registry
help Print this message or the help of the given subcommand(s)
Options:
-v, --verbosity... Verbosity level (0-4). Default: 0 (ERROR)
-q, --quiet Suppresses standard output
-h, --help Print help
-V, --version Print version
贡献
欢迎并鼓励所有形式的贡献!
请查看 现有问题 以查找类似的功能请求或错误报告。
如果没有相关的问题,请随意 打开一个问题。
许可
本项目采用 MIT 许可证。
免费且开源,永远如此。 所有我们的 rust 都属于你。
依赖
~5–15MB
~159K SLoC