use-event-name 0.1.0

Lightweight event name primitive for RustUse.
Documentation
  • Coverage
  • 20%
    1 out of 5 items documented1 out of 4 items with examples
  • Size
  • Source code size: 5.32 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 357.09 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 3s Average build duration of successful builds.
  • all releases: 3s 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-name

Lightweight event name primitive for RustUse.

Install

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

Example

use use_event_name::EventName;

let name = EventName::new("command.started");

assert_eq!(name.as_str(), "command.started");
assert_eq!(name.to_string(), "command.started");

Scope

  • Store caller-provided event name text.
  • Provide common string conversions and display behavior.
  • Keep naming policy with the caller.

Non-Goals

  • No naming convention enforcement.
  • No event registry.
  • No routing or dispatch behavior.

Status

Experimental v0.1.0 primitive.

License

Licensed under either of the following, at your option:

  • Apache License, Version 2.0
  • MIT license