4 releases

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

#306 in Development tools

Download history 607/week @ 2024-08-22 611/week @ 2024-08-29 997/week @ 2024-09-05 460/week @ 2024-09-12 273/week @ 2024-09-19 715/week @ 2024-09-26 208/week @ 2024-10-03 369/week @ 2024-10-10 2306/week @ 2024-10-17 2692/week @ 2024-10-24 2299/week @ 2024-10-31 2391/week @ 2024-11-07 1719/week @ 2024-11-14 1026/week @ 2024-11-21 1265/week @ 2024-11-28 1508/week @ 2024-12-05

5,916 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
~53K SLoC