About
A Cargo sub command that creates a file with a user-defined license in the project's directory. Made by Pablo Marques in 18/05/2024 under the MIT license.
Installation
Download from crates.io:
cargo add add-license
or download Source Code
Install the crate with:
cargo install add-license
or locally with cargo install --path .
Usage
cargo add-license [AGPL3, APACHE2, BSD2, BSD3, GPL2, GPL3, LGPL2, MIT]
Example:
cargo add-license MIT
ATTENTION
Some licenses must be manually edited to include the current year and your personal name. You may search for the <year> and <name> keywords in those files and edit them every time you run the command.
Alternatively, you can download the source code, edit the license files one time and then run cargo install --path . to include this newer version in the cargo bin folder.