armature-events

Crates.ioarmature-events
lib.rsarmature-events
version0.1.0
created_at2025-12-26 18:48:04.848033+00
updated_at2025-12-26 18:48:04.848033+00
descriptionEvent bus and pub/sub for Armature applications
homepagehttps://pegasusheavy.github.io/armature
repositoryhttps://github.com/pegasusheavy/armature
max_upload_size
id2006079
size47,459
Joseph R. Quinn (quinnjr)

documentation

README

armature-events

Event system for the Armature framework.

Features

  • Event Bus - Publish/subscribe events
  • Async Handlers - Non-blocking event processing
  • Event Sourcing - Append-only event log
  • Replay - Rebuild state from events

Installation

[dependencies]
armature-events = "0.1"

Quick Start

use armature_events::{EventBus, Event};

let bus = EventBus::new();

// Subscribe
bus.subscribe::<UserCreated>(|event| async move {
    send_welcome_email(&event.email).await
});

// Publish
bus.publish(UserCreated { user_id: "123".into() }).await;

License

MIT OR Apache-2.0

Commit count: 0

cargo fmt