| Crates.io | apply-license |
| lib.rs | apply-license |
| version | 0.3.1 |
| created_at | 2018-07-11 18:33:32.975613+00 |
| updated_at | 2022-03-06 01:48:37.94475+00 |
| description | Automatically apply licenses to your software |
| homepage | |
| repository | https://github.com/euclio/apply-license |
| max_upload_size | |
| id | 73800 |
| size | 231,261 |
apply-license is a simple command-line tool that strives to make applying
open-source licenses to your software as easy and automated as possible.
It generates the appropriate license files in your directory (i.e., LICENSE if
you are using only one license, and LICENSE-<id> for projects with more than
one license applied.) The license text will contain the appropriate authorship
and the current year.
To install the tool, use cargo. You can install cargo with
rustup.
$ cargo install apply-license
This will install the apply-license and cargo-apply-license binaries to your
PATH.
If you're working with a cargo project, using apply-license couldn't be
easier. Simply execute:
$ cargo apply-license
This command will parse your Cargo.toml to determine authorship and license
information. If you haven't specified a license, it will default to "MIT OR
Apache-2.0".
This package also includes a standalone binary for non-cargo projects. It works
similarly to cargo-apply-license, but you'll have to specify the license
expression and authorship yourself:
$ apply-license -a "John Doe" -l MIT