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

#302 in Development tools

Download history 363/week @ 2024-07-21 368/week @ 2024-07-28 589/week @ 2024-08-04 435/week @ 2024-08-11 497/week @ 2024-08-18 525/week @ 2024-08-25 769/week @ 2024-09-01 837/week @ 2024-09-08 361/week @ 2024-09-15 371/week @ 2024-09-22 618/week @ 2024-09-29 190/week @ 2024-10-06 1027/week @ 2024-10-13 2714/week @ 2024-10-20 2401/week @ 2024-10-27 2394/week @ 2024-11-03

8,548 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.5–8MB
~55K SLoC