4 releases

new 0.1.3 Oct 15, 2024
0.1.2 Sep 12, 2023
0.1.1 Aug 31, 2023
0.1.0 Aug 30, 2023

#313 in Development tools

Download history 94/week @ 2024-07-01 531/week @ 2024-07-08 410/week @ 2024-07-15 373/week @ 2024-07-22 360/week @ 2024-07-29 590/week @ 2024-08-05 430/week @ 2024-08-12 503/week @ 2024-08-19 539/week @ 2024-08-26 761/week @ 2024-09-02 836/week @ 2024-09-09 359/week @ 2024-09-16 390/week @ 2024-09-23 597/week @ 2024-09-30 192/week @ 2024-10-07 1075/week @ 2024-10-14

2,266 downloads per month
Used in bumble

Apache-2.0

46KB
598 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.4–8MB
~57K SLoC