onur/cargo-license

Cargo subcommand to see license of dependencies

Rust

505

138 commits

updated Jul 30, 2025

See the code

README

cargo-license

CI License Minimum Supported Rust Version

A cargo subcommand to see license of dependencies.

Installation and Usage

You can install cargo-license with: cargo install cargo-license and run it in your project directory with: cargo license or cargo-license.

Cargo subcommand to see licenses of dependencies.

Usage: cargo license [OPTIONS]

Options:
  -a, --authors                    Display crate authors
      --all-features               Activate all available features
      --avoid-build-deps           Exclude build dependencies
      --avoid-dev-deps             Exclude development dependencies
      --avoid-proc-macros          Exclude `proc_macros` dependencies
      --color <WHEN>               Coloring [default: auto] [possible values: auto, always, never]
      --current-dir <CURRENT_DIR>  Current directory of the cargo metadata process
  -d, --do-not-bundle              Output one license per line
      --direct-deps-only           Output information only about the root package and don't fetch dependencies
      --features <FEATURE>         Space-separated list of features to activate
      --filter-platform <TRIPLE>   Only include resolve dependencies matching the given target-triple
  -g, --gitlab                     Gitlab license scanner output
  -j, --json                       Detailed output as JSON
      --manifest-path <PATH>       Path to Cargo.toml
      --no-default-features        Deactivate default features
  -o, --output <PATH>              Output to file
      --root-only                  Output information only about the root package
  -t, --tsv                        Detailed output as tab-separated-values
  -h, --help                       Print help

Example

cargo-license running inside the cargo-license project directory:

cargo-license

Significant stargazers

Jonas Platte

653 followers · starred Sep 2020

Weihang Lo

623 followers · starred Feb 2023

Mazdak Farrokhzad

276 followers · starred Jan 2017

Dimitri Sabadie

854 followers · starred Dec 2017

onur/cargo-license

Cargo subcommand to see license of dependencies

Rust

505

138 commits

updated Jul 30, 2025

See the code

README

cargo-license

CI License Minimum Supported Rust Version

A cargo subcommand to see license of dependencies.

Installation and Usage

You can install cargo-license with: cargo install cargo-license and run it in your project directory with: cargo license or cargo-license.

Cargo subcommand to see licenses of dependencies.

Usage: cargo license [OPTIONS]

Options:
  -a, --authors                    Display crate authors
      --all-features               Activate all available features
      --avoid-build-deps           Exclude build dependencies
      --avoid-dev-deps             Exclude development dependencies
      --avoid-proc-macros          Exclude `proc_macros` dependencies
      --color <WHEN>               Coloring [default: auto] [possible values: auto, always, never]
      --current-dir <CURRENT_DIR>  Current directory of the cargo metadata process
  -d, --do-not-bundle              Output one license per line
      --direct-deps-only           Output information only about the root package and don't fetch dependencies
      --features <FEATURE>         Space-separated list of features to activate
      --filter-platform <TRIPLE>   Only include resolve dependencies matching the given target-triple
  -g, --gitlab                     Gitlab license scanner output
  -j, --json                       Detailed output as JSON
      --manifest-path <PATH>       Path to Cargo.toml
      --no-default-features        Deactivate default features
  -o, --output <PATH>              Output to file
      --root-only                  Output information only about the root package
  -t, --tsv                        Detailed output as tab-separated-values
  -h, --help                       Print help

Example

cargo-license running inside the cargo-license project directory:

cargo-license

Significant stargazers

Jonas Platte

653 followers · starred Sep 2020

Weihang Lo

623 followers · starred Feb 2023

Mazdak Farrokhzad

276 followers · starred Jan 2017

Dimitri Sabadie

854 followers · starred Dec 2017

Languages

Rust

100.0%