cargo-ensure-prefix

Crates.iocargo-ensure-prefix
lib.rscargo-ensure-prefix
version0.1.7
sourcesrc
created_at2018-12-31 10:43:42.961172
updated_at2021-11-21 10:44:23.925161
descriptionCargo subcommand to check that all target files have a fixed prefix.
homepage
repositoryhttps://github.com/illicitonion/cargo-ensure-prefix
max_upload_size
id104690
size50,050
Daniel Wagner-Hall (illicitonion)

documentation

README

cargo-ensure-prefix

A cargo subcommand to check that all target files have a fixed prefix. This may be useful for licence headers, ensuring particular clippy lints are en/disabled, or maybe some other things too.

crates.io Documentation Build Status

Usage

cargo-ensure-prefix 

USAGE:
    cargo-ensure-prefix [FLAGS] [OPTIONS] --manifest-path <manifest-path> --prefix-path <prefix-path>

FLAGS:
        --all        
    -h, --help       Prints help information
    -V, --version    Prints version information

OPTIONS:
        --manifest-path <manifest-path>    
    -p, --package <package>...             
        --prefix-path <prefix-path>

Wildcard matching

Any byte will be accepted where a character \x1A is present in the prefix file. e.g. you could match any set of 4-digit years with a prefix file with contents: Copyright \x1A\x1A\x1A\x1A. Note that this is byte-wise matching, not character-wise matching.

Commit count: 17

cargo fmt