Crates.io | cargo-ensure-prefix |
lib.rs | cargo-ensure-prefix |
version | 0.1.7 |
source | src |
created_at | 2018-12-31 10:43:42.961172 |
updated_at | 2021-11-21 10:44:23.925161 |
description | Cargo subcommand to check that all target files have a fixed prefix. |
homepage | |
repository | https://github.com/illicitonion/cargo-ensure-prefix |
max_upload_size | |
id | 104690 |
size | 50,050 |
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.
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>
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.