This crate provides event bus for Rust
```rust use eventbusrs::{Subscriber, EventBus}; use asynctrait::async_trait; use std::any::Any; // Create new topic type Topic = ();
// Impl our subscriber struct SimpleSubscriber;
impl Subscriber for SimpleSubscriber {
async fn handle(&self, message: &(dyn Any + Send + Sync)) {}
}
async fn subscribeandpublish() {
// Create event bus
let mut eventbus = EventBus::new().await;
// Subscribe on our topic
eventbus.subscribe::