cargo-include-licenses

Crates.iocargo-include-licenses
lib.rscargo-include-licenses
version0.0.1
sourcesrc
created_at2021-06-23 21:06:33.427947
updated_at2021-06-23 21:06:33.427947
descriptionCollects license files from the dependencies of a project into a predefined directory
homepage
repositoryhttps://github.com/C1710/cargo-include-licenses
max_upload_size
id414138
size685,624
Constantin A. (C1710)

documentation

README

What does this program do?

It goes through the local copies of the dependencies of a project
(or, to be more precise, the packages output by cargo metadata) and looks for potential license files:

  • Files than have a path containing "LICENSE|COPYRIGHT|NOTICE|AUTHORS|COPYING" (or in lowercase)
  • Files that have a path containing "README", ".txt" or ".md" and include a line with one of the words mentioned above

These are then copied (while preserving the directory structure) into a user-defined directory.

Of course, there can be both false negatives and false positives, use it at your own risk.

Building

Due to the usage of once_cell, it currently requires Rust nightly.
Otherwise it can be built with cargo, just like usual.

Commit count: 8

cargo fmt