| Crates.io | armature-events |
| lib.rs | armature-events |
| version | 0.1.0 |
| created_at | 2025-12-26 18:48:04.848033+00 |
| updated_at | 2025-12-26 18:48:04.848033+00 |
| description | Event bus and pub/sub for Armature applications |
| homepage | https://pegasusheavy.github.io/armature |
| repository | https://github.com/pegasusheavy/armature |
| max_upload_size | |
| id | 2006079 |
| size | 47,459 |
Event system for the Armature framework.
[dependencies]
armature-events = "0.1"
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;
MIT OR Apache-2.0