Registry / build-tool / cargo-license

cargo-license

JSON →
library0.7.0rscratesunverified

Cargo subcommand to see license of dependencies.

# Cargo.toml [dependencies] cargo-license = "0.7.0"
INSTALL
IMPORT
SIG · CARGO-LICENSE
C
cargo-license
build-toolrustv0.7.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

get_dependencies_licenses
use cargo_license::get_dependencies_licenses;

Lists licenses of all dependencies in the current project.

use cargo_license::get_dependencies_licenses; fn main() { let licenses = get_dependencies_licenses().unwrap(); for (name, license) in licenses { println!("{}: {}", name, license); } }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.7.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
27 hits · last 30 days
node
22
Amazon
1
OpenAI (training)
1
Resources
cargo-license — cargo add cargo-license · libregistry