16 releases

0.7.0 Jul 29, 2025
0.6.1 Jan 24, 2024
0.5.2 Jan 22, 2024
0.5.1 Aug 16, 2022
0.1.1 Jul 8, 2016

#134 in Cargo plugins

Download history 10849/week @ 2025-10-20 12786/week @ 2025-10-27 13367/week @ 2025-11-03 12401/week @ 2025-11-10 15957/week @ 2025-11-17 10876/week @ 2025-11-24 10503/week @ 2025-12-01 10344/week @ 2025-12-08 9285/week @ 2025-12-15 4865/week @ 2025-12-22 5391/week @ 2025-12-29 9350/week @ 2026-01-05 9248/week @ 2026-01-12 9147/week @ 2026-01-19 9468/week @ 2026-01-26 10347/week @ 2026-02-02

38,853 downloads per month
Used in 27 crates (4 directly)

MIT license

33KB
760 lines

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-license 0.5.0
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
        --color <WHEN>                 Coloring [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
    -h, --help                         Print help information
    -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
        --root-only                    Output information only about the root package
    -t, --tsv                          Detailed output as tab-separated-values

Example

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

cargo-license

Dependencies

~11MB
~147K SLoC