https://github.com/onur/cargo-license
Cargo subcommand to see license of dependencies
https://github.com/onur/cargo-license
Last synced: 4 months ago
JSON representation
Cargo subcommand to see license of dependencies
- Host: GitHub
- URL: https://github.com/onur/cargo-license
- Owner: onur
- License: mit
- Created: 2016-07-08T14:10:14.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2024-02-25T13:21:09.000Z (over 2 years ago)
- Last Synced: 2024-11-09T19:49:56.261Z (over 1 year ago)
- Language: Rust
- Size: 90.8 KB
- Stars: 422
- Watchers: 6
- Forks: 37
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-rust-with-stars - cargo-license - license) | A cargo subcommand to quickly view the licenses of all dependencies. | 2025-07-30 | (Development tools / Build system)
README
# cargo-license
[](https://github.com/onur/cargo-license/actions?workflow=CI)
[](https://raw.githubusercontent.com/onur/cargo-license/master/LICENSE)

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 Coloring [default: auto] [possible values: auto, always, never]
--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 Space-separated list of features to activate
--filter-platform Only include resolve dependencies matching the given target-triple
-g, --gitlab Gitlab license scanner output
-j, --json Detailed output as JSON
--manifest-path Path to Cargo.toml
--no-default-features Deactivate default features
-o, --output 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:
