Skip to main content

hyperlane_plugin_mq/
lib.rs

1//! hyperlane-plugin-mq
2//!
3//! High-concurrency pluggable message queue abstraction and sharded in-memory
4//! broker for Hyperlane with topics, consumer groups, bounded backpressure,
5//! TTL expiration, `O(log N)` min-heap visibility timeouts, retries, and
6//! dead-letter queues.
7
8mod r#const;
9mod r#enum;
10mod r#fn;
11mod r#impl;
12mod r#static;
13mod r#struct;
14mod r#trait;
15mod r#type;
16
17#[cfg(test)]
18#[path = "../tests/mod.rs"]
19mod tests;
20
21pub use {r#const::*, r#enum::*, r#struct::*, r#trait::*, r#type::*};
22
23pub(crate) use {r#fn::*, r#static::*};
24
25use std::{
26    array::from_fn,
27    collections::{HashMap, VecDeque},
28    error::Error,
29    fmt::{self, Display, Formatter},
30    future::{Future, ready},
31    hash::{BuildHasherDefault, Hasher},
32    pin::Pin,
33    sync::{
34        Arc, Mutex, MutexGuard, OnceLock, RwLock, RwLockReadGuard,
35        atomic::{AtomicU32, AtomicU64, Ordering},
36    },
37    time::{Duration, Instant, SystemTime, UNIX_EPOCH},
38};
39
40use lombok_macros::*;