use-docker-tag 0.0.1

Primitive Docker tag validation helpers for RustUse
Documentation
  • Coverage
  • 100%
    14 out of 14 items documented1 out of 10 items with examples
  • Size
  • Source code size: 8.03 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 438.47 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 4s Average build duration of successful builds.
  • all releases: 4s 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-docker-tag

Primitive Docker tag validation helpers for RustUse.

use-docker-tag validates Docker-shaped tag text and exposes small helpers for latest, semantic-looking tags, and platform-looking suffixes.

Basic Usage

use use_docker_tag::DockerTag;

let tag: DockerTag = "1.2.3-alpine".parse()?;

assert!(tag.is_semver_like());
assert!(tag.has_platform_suffix());
assert_eq!(DockerTag::latest().as_str(), "latest");
# Ok::<(), Box<dyn std::error::Error>>(())