use-dockerignore 0.0.1

Primitive .dockerignore pattern vocabulary for RustUse
Documentation
  • Coverage
  • 100%
    26 out of 26 items documented1 out of 18 items with examples
  • Size
  • Source code size: 9.66 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 660.34 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 2s Average build duration of successful builds.
  • all releases: 2s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • RustUse/use-docker
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • CloudBranch

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());
# Ok::<(), Box<dyn std::error::Error>>(())