Crates.io | cargo-3pl |
lib.rs | cargo-3pl |
version | 0.1.3 |
source | src |
created_at | 2021-12-09 04:10:33.968008 |
updated_at | 2023-01-30 00:43:30.521332 |
description | The easy way to ship dependency licenses with your Rust binaries |
homepage | |
repository | https://github.com/ankane/cargo-3pl |
max_upload_size | |
id | 494965 |
size | 31,362 |
:truck: The easy way to ship dependency licenses with your Rust binaries
Run:
cargo install cargo-3pl
As part of your distribution process, run:
cargo 3pl > LICENSE-THIRD-PARTY
This project creates a summary of your dependency licenses from their license
field in Cargo.toml
. It then tries to find their license files. It looks for:
LICENSE
, LICENCE
, NOTICE
, or COPYING
(case-insensitive)txt
, md
, or no extension (case-insensitive)Dependencies in the current workspace are not included.
Specify features to include
cargo 3pl --features <FEATURES>...
cargo 3pl --all-features
cargo 3pl --no-default-features
Specify targets
cargo 3pl --target x86_64-unknown-linux-gnu
If any packages are missing license files, create a new file:
================================================================================
some-package LICENSE.txt
================================================================================
...
================================================================================
other-package COPYING
================================================================================
...
And append it:
cat LICENSE-MANUAL >> LICENSE-THIRD-PARTY
We also recommend creating a pull request for the package.
View the changelog
Everyone is encouraged to help improve this project. Here are a few ways you can help:
To get started with development:
git clone https://github.com/ankane/cargo-3pl.git
cd cargo-3pl
cargo run