apply-license

Crates.ioapply-license
lib.rsapply-license
version0.3.1
sourcesrc
created_at2018-07-11 18:33:32.975613
updated_at2022-03-06 01:48:37.94475
descriptionAutomatically apply licenses to your software
homepage
repositoryhttps://github.com/euclio/apply-license
max_upload_size
id73800
size231,261
Andy Russell (euclio)

documentation

https://docs.rs/apply-license

README

apply-license

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.

Installation

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.

Usage

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
Commit count: 16

cargo fmt