acknowledge is a CLI tool for generating list of acknowledgements based on your Cargo.toml file.
It works with github and gitlab APIs. Only public repos are supported.
cargo install acknowledgements-rs
acknowledge is a simple CLI tool to analyze dependencies of a Cargo (rust) project and produce an ACKNOWLEDGEMENTS.md file listing (major) contributors of your dependencies
Usage: acknowledge [OPTIONS] [COMMAND]
Commands:
clear-cache Clears cache
help Print this message or the help of the given subcommand(s)
Options:
-p, --path <PATH>...
Path(s) to project root(s) for analysis: a Cargo or npm project. Repeatable,
so several projects can be merged into a single output file, and may also be
set in a `.acknowledgementsrc`
-g, --gh-token <GH_TOKEN>
Running Acknowledgements on any project of reasonable size you're likely to face rate limits. Please provide a personal access token
-o, --output <OUTPUT>
Output file path, defaults to project path if not provided
-m, --mention
Whether to include @ (at) symbol in front of a github user's name
-f, --format <FORMAT>
Format of the output file [default: NameAndCount]
-b, --breadth <BREADTH>
Breadth of scan, whether to include optional, build and dev deps contributors [default: NonOpt]
-c, --contributions-threshold <CONTRIBUTIONS_THRESHOLD>
Min number of contributions to be included in the list, doesn't apply to sole contributors [default: 2]
-s, --sources <SOURCES>
List other sources, not specified in Cargo.toml
-t, --template <TEMPLATE>
Use your own template. See https://github.com/anvlkv/acknowledgements/blob/main/src/template.md?plain=1 for reference
-h, --help
Print help
-V, --version
Print version
-p/--path can be given more than once (or with several space-separated values), so several
projects are merged into a single acknowledgements file:
acknowledge -p ./backend -p ./frontend
Each path is analysed independently; the ecosystem (Cargo or npm) is detected from the manifest present in it. The default output is written next to the first path.
Instead of passing every option on the command line, put defaults in a .acknowledgementsrc
(TOML) file. It is looked up in the current directory and its ancestors, then in your home
directory; the ACKNOWLEDGEMENTS_RC environment variable overrides that search with an
explicit path. Options passed on the command line always take precedence.
paths = ["backend", "frontend"]
sources = ["https://github.com/foo/bar"]
format = "dep-and-names"
breadth = "all"
mention = true
contributions-threshold = 3
output = "ACKNOWLEDGEMENTS.md"
template = "my-template.md"Keys and enum values are kebab-case (e.g. build-and-dev, name-and-count); on the command
line the same options use the variant names shown below (e.g. -b BuildAndDev).
Be sure to provide one if you're waiting for limit reset for too long or too often. No permissions are needed for this token.
Links any repos not discoverable via Cargo.toml
NonOpt- Non-optional dependenciesAll- All dependenciesBuildAndDev- All dependencies including[build-dependencies]and[dev-dependencies]
NameAndCount- Name of the contributor and count of contributionsDepAndNames- Name of the dependency, names of contributorsNameAndDeps- Name of the contributor, names of dependencies where they contributed
NameAndCount-acknowledge -p .DepAndNames-acknowledge -p . -f DepAndNamesNameAndDeps-acknowledge -p . -f NameAndDepsBuildAndDev-acknowledge -p . -b BuildAndDev