15 releases

0.6.1 Jan 24, 2024
0.5.2 Jan 22, 2024
0.5.1 Aug 16, 2022
0.4.2 Sep 11, 2021
0.1.1 Jul 8, 2016

#34 in Cargo plugins

Download history 3289/week @ 2024-01-03 3477/week @ 2024-01-10 4972/week @ 2024-01-17 4619/week @ 2024-01-24 3775/week @ 2024-01-31 2613/week @ 2024-02-07 3662/week @ 2024-02-14 5195/week @ 2024-02-21 5665/week @ 2024-02-28 5381/week @ 2024-03-06 5451/week @ 2024-03-13 7336/week @ 2024-03-20 7748/week @ 2024-03-27 6574/week @ 2024-04-03 6641/week @ 2024-04-10 4564/week @ 2024-04-17

26,727 downloads per month
Used in 6 crates

MIT license

21KB
467 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

~6MB
~90K SLoC