use-event-log 0.1.0

Append-only in-memory event log wrapper for RustUse events.
Documentation
  • Coverage
  • 11.11%
    1 out of 9 items documented1 out of 8 items with examples
  • Size
  • Source code size: 5.22 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 333.26 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-log

Append-only in-memory event log wrapper for RustUse events.

Install

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

Example

use use_event_log::EventLog;

let mut log = EventLog::new();
log.append("command.started");

assert_eq!(log.last(), Some(&"command.started"));

Scope

  • Keep ordered in-memory event entries.
  • Provide append, entries, last, length, and emptiness helpers.
  • Leave event storage policy to the caller.

Non-Goals

  • No file, database, or network persistence.
  • No retention policy.
  • No event sourcing framework.

Status

Experimental v0.1.0 primitive.

License

Licensed under either of the following, at your option:

  • Apache License, Version 2.0
  • MIT license