use-git-tag 0.0.1

Primitive Git tag name vocabulary for RustUse
Documentation
  • Coverage
  • 100%
    16 out of 16 items documented1 out of 10 items with examples
  • Size
  • Source code size: 9.52 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 619.68 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-git
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • CloudBranch

use-git-tag

Primitive Git tag name vocabulary for RustUse.

use-git-tag models tag names, lightweight vs annotated tag vocabulary, and version-like tag wrappers. It does not parse tag objects or depend on a semantic-versioning parser.

Basic usage

use use_git_tag::{GitTagKind, VersionTagName};

let version = VersionTagName::new("v1.2.3").expect("valid version-like tag");

assert_eq!(GitTagKind::Annotated.as_str(), "annotated");
assert_eq!(version.as_str(), "v1.2.3");

Scope

  • Validate basic tag-name text.
  • Model lightweight and annotated tag labels.
  • Keep tag object parsing out of scope.