use-docker-label 0.0.1

Primitive Docker and OCI label helpers for RustUse
Documentation
  • Coverage
  • 100%
    19 out of 19 items documented1 out of 10 items with examples
  • Size
  • Source code size: 7.72 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 534.5 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-docker-label

Primitive Docker and OCI label helpers for RustUse.

This crate validates label keys and values and exposes helpers for common OCI annotation labels.

Basic Usage

use use_docker_label::{DockerLabel, DockerLabelKey, OCI_TITLE};

let label = DockerLabel::new(DockerLabelKey::new(OCI_TITLE)?, "RustUse app")?;

assert_eq!(label.to_string(), "org.opencontainers.image.title=RustUse app");
# Ok::<(), Box<dyn std::error::Error>>(())