hyperlane_broadcast/lib.rs
1//! hyperlane-broadcast
2//!
3//! hyperlane-broadcast is a lightweight
4//! and ergonomic wrapper over Tokio’s broadcast channel designed
5//! for easy-to-use publish-subscribe messaging in async Rust applications.
6//! It simplifies the native Tokio broadcast API by providing a straightforward
7//! interface for broadcasting messages to multiple subscribers with minimal boilerplate.
8
9mod broadcast;
10mod broadcast_map;
11
12pub use broadcast::*;
13pub use broadcast_map::*;
14
15use std::{fmt::Debug, hash::BuildHasherDefault};
16
17use dashmap::*;
18use tokio::sync::broadcast::{
19 error::SendError,
20 {Receiver, Sender},
21};
22use twox_hash::XxHash3_64;