#header #license #spdx #defined #text #default #check

file-header

Rust library to check for and add headers to files

3 releases

0.1.2 Sep 12, 2023
0.1.1 Aug 31, 2023
0.1.0 Aug 30, 2023

#497 in Development tools

Download history 345/week @ 2023-12-23 242/week @ 2023-12-30 244/week @ 2024-01-06 296/week @ 2024-01-13 337/week @ 2024-01-20 568/week @ 2024-01-27 303/week @ 2024-02-03 139/week @ 2024-02-10 143/week @ 2024-02-17 168/week @ 2024-02-24 387/week @ 2024-03-02 297/week @ 2024-03-09 149/week @ 2024-03-16 127/week @ 2024-03-23 572/week @ 2024-03-30 318/week @ 2024-04-06

1,232 downloads per month
Used in bumble

Apache-2.0

41KB
527 lines

file-header

Crates.io Docs

A Rust library to check for and add headers to files.

A header can be any arbitrary text, but we provide an spdx feature, which when enabled allows usage of any SPDX license known to the license crate as headers. For easy use of this feature, we have already defined structs to support some commonly used licenses:

By default, this crate enables a license-offline feature to build the license crate offline; if you want to download the latest licenses when building, you will have to disable default features and enable only the spdx feature.

If you are looking for a tool (rather than a library) that can add license headers, check out addlicense.

Dependencies

~0.5–1.8MB
~22K SLoC