Skip to main content

Crate use_dockerignore

Crate use_dockerignore 

Source
Expand description

§use-dockerignore

Primitive .dockerignore pattern vocabulary for RustUse.

This crate classifies lines as blank lines, comments, negated patterns, directory-only patterns, or ordinary patterns. It does not decide whether a filesystem path is ignored.

§Basic Usage

use use_dockerignore::{DockerIgnoreNegation, DockerIgnoreRule};

let rule = DockerIgnoreRule::parse("!target/")?;

assert_eq!(rule.negation(), DockerIgnoreNegation::Negated);
assert!(rule.is_directory_only());

Structs§

DockerIgnorePattern
A non-empty .dockerignore pattern.
DockerIgnoreRule
A classified .dockerignore rule.

Enums§

DockerIgnoreNegation
Pattern negation vocabulary.
DockerIgnoreParseError
Error returned while parsing .dockerignore vocabulary.
DockerIgnoreScope
Ignore rule classification.