licenses 0.0.1

Command line tool for collecting licenses.
licenses-0.0.1 is not a library.

licenses

crates.io GitHub Actions Workflow Status MIT

Command line tool for collecting licenses.

Install

cargo install licenses

Usage

$ cargo licenses --help
Command line tool for collecting licenses.

Usage: cargo licenses [OPTIONS] <COMMAND>

Commands:
  folder  Collects all licenses into a folder
  help    Print this message or the help of the given subcommand(s)

Options:
  -d, --dev                  Include dev dependencies [default: excluded]
  -b, --build                Include build dependencies [default: excluded]
  -e, --exclude <WORKSPACE>  Exclude specified workspace [default: all included]
  -D, --depth <DEPTH>        The depth of dependencies to collect licenses for [default: all sub dependencies]
  -h, --help                 Print help
  -V, --version              Print version

Example

cargo licenses --depth 1 folder

licenses
├── anyhow-LICENSE-APACHE
├── anyhow-LICENSE-MIT
├── cargo_metadata-LICENSE-MIT
├── clap-LICENSE-APACHE
├── colored-LICENSE
├── itertools-LICENSE-APACHE
└── itertools-LICENSE-MIT