file-header

Crates.iofile-header
lib.rsfile-header
version0.1.2
sourcesrc
created_at2023-08-30 19:06:42.757206
updated_at2023-09-12 15:44:13.49917
descriptionRust library to check for and add headers to files
homepage
repositoryhttps://github.com/google/file-header
max_upload_size
id959211
size57,637
Marshall Pierce (marshallpierce)

documentation

https://docs.rs/crate/file-header

README

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.

Commit count: 8

cargo fmt