cargo-ensure-prefix 0.1.3

Cargo subcommand to check that all target files have a fixed prefix.
cargo-ensure-prefix-0.1.3 is not a library.

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.