Wolfgang Bumiller
7ffe482dd5
add debian build files
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2020-06-03 13:32:09 +02:00
Wolfgang Bumiller
6d54e32c59
add .cargo/config to use local repos
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2020-06-03 13:30:33 +02:00
Wolfgang Bumiller
92591b0073
Relax MatchList to support slices of references
...
It must not consume `self`.
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2020-05-29 13:22:20 +02:00
Wolfgang Bumiller
909586e6ad
document MatchList
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2020-05-29 12:50:28 +02:00
Wolfgang Bumiller
1d6ca6ca1b
fix non-anchored literal matches starting with a slash
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2020-05-29 11:05:13 +02:00
Wolfgang Bumiller
1c51800f17
Replace MatchList type with a trait.
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2020-05-29 09:42:13 +02:00
Wolfgang Bumiller
8e38a91c57
MatchEntry: also provide access to other parts
...
In the future we'll probably have a separate Builder type,
but that's an API change.
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2020-05-20 12:37:05 +02:00
Wolfgang Bumiller
ed626f3831
MatchEntry: add mutable accessors
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2020-05-20 12:33:00 +02:00
Wolfgang Bumiller
e86ed76048
add MatchPattern::Literal
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2020-05-20 12:14:16 +02:00
Wolfgang Bumiller
e2255d72d1
Add MatchEntry::parse_pattern
...
This is a convenience helper to parse an entry with possible
inversion via a leading exclamation mark and interpreting
trailing slashes to mean `MatchFlag::MATCH_DIRECTORY` and
create a `Pattern` from the string with those characters
stripped off.
This also changes the way `MatchFlag`s are passed to a
builder pattern for convenience.
Also: impl std::ops::Not for MatchType.
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2020-04-28 13:25:16 +02:00
Wolfgang Bumiller
b1a5365911
Pattern: strip triling slashes, forbid empty patterns
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2020-04-28 12:05:53 +02:00
Wolfgang Bumiller
96d7b7c74d
MatchList::with_capacity and Into<Vec<MatchEntry>>
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2020-04-27 16:54:38 +02:00
Wolfgang Bumiller
d5c0e44a9d
initial import
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@errno.eu>
2020-04-27 12:46:59 +02:00