3 个版本
0.1.2 | 2023年1月30日 |
---|---|
0.1.1 | 2023年1月30日 |
0.1.0 | 2023年1月29日 |
#1155 in 开发工具
18KB
311 代码行
thanks-dependencies
此工具生成依赖列表。
我认为在文档中明确发布依赖项会更好。当然,用户可以从 Cargo.toml
中参考依赖项,但几乎没有人对库所使用的库感兴趣。
因此,明确发布依赖项会迫使用户查看这些依赖项,并且可以宣传这些依赖项。此外,它还应成为持续维护的动力。
为此,我们需要手动搜索依赖项并编写信息,但这非常耗时。
因此,这个工具自动化了这些任务。并且它会生成 感谢以下依赖项。
安装
$ cargo install thanks-dependencies
用法
只需运行以下命令即可。
$ thanks-dependencies
它有以下选项。
$ thanks-dependencies -h
Usage: thanks-dependencies [OPTIONS]
Options:
-r, --readme <README> Path for your README.md [default: ./README.md]
-c, --cargo <CARGO> Path for your Cargo.toml [default: ./Cargo.toml]
-t, --title <TITLE> Title for thanks list [default: "## Thanks for the following dependencies"]
--recursive Whether reading dependencies recursively
-h, --help Print help
感谢以下依赖项
依赖项
- async-recursion(https://github.com/dcchut/async-recursion) ... 异步函数的递归
- cargo_toml(https://gitlab.com/crates.rs/cargo_toml) ... 使用 Serde 解析的
Cargo.toml
结构定义 - clap(https://github.com/clap-rs/clap) ... 一个简单易用、高效、功能齐全的命令行参数解析器
- futures(https://github.com/rust-lang/futures-rs) ... futures 和 streams 的实现,具有零分配、可组合性和类似迭代器的接口。
- futures-util(https://github.com/rust-lang/futures-rs) ... futures-rs 库的通用实用工具和扩展特质
- serde(https://github.com/serde-rs/serde) ... 一个通用的序列化和反序列化框架
- surf(https://github.com/http-rs/surf) ... Surf the web - HTTP 客户端框架
依赖项
~8–11MB
~221K SLoC