#generate #list #write #thank #cargo #cargo-toml #information

app thanks-dependencies

在 README 中生成依赖列表以表示感谢

3 个版本

0.1.2 2023年1月30日
0.1.1 2023年1月30日
0.1.0 2023年1月29日

#1155 in 开发工具

MIT 许可证

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

感谢以下依赖项

依赖项

依赖项

~8–11MB
~221K SLoC