use-event-id 0.1.0

Lightweight event identifier primitive for RustUse.
Documentation
  • Coverage
  • 20%
    1 out of 5 items documented1 out of 4 items with examples
  • Size
  • Source code size: 5.17 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 356.01 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 8s Average build duration of successful builds.
  • all releases: 8s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • RustUse/use-event
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • CloudBranch

use-event-id

Lightweight event identifier primitive for RustUse.

Install

[dependencies]
use-event-id = "0.1.0"

Example

use use_event_id::EventId;

let id = EventId::new("evt-001");

assert_eq!(id.as_str(), "evt-001");
assert_eq!(id.to_string(), "evt-001");

Scope

  • Store caller-provided event id text.
  • Provide common string conversions and display behavior.
  • Keep construction infallible and policy-free for v0.1.0.

Non-Goals

  • No UUID generation.
  • No global uniqueness guarantees.
  • No validation beyond preserving the supplied text.

Status

Experimental v0.1.0 primitive.

License

Licensed under either of the following, at your option:

  • Apache License, Version 2.0
  • MIT license