Skip to main content

hyperlane_plugin_maintenance/
lib.rs

1//! hyperlane-plugin-maintenance
2//!
3//! Lock-free atomic maintenance and read-only mode middleware for Hyperlane
4//! with zero-restart live switching, path/token bypasses, and prebuilt `503`
5//! wire responses.
6
7mod r#const;
8mod r#enum;
9mod r#fn;
10mod r#impl;
11mod r#static;
12mod r#struct;
13
14#[cfg(test)]
15#[path = "../tests/mod.rs"]
16mod tests;
17
18pub use {r#const::*, r#enum::*, r#struct::*};
19
20pub(crate) use {r#fn::*, r#static::*};
21
22use std::{
23    hint::black_box,
24    sync::{
25        OnceLock,
26        atomic::{AtomicU8, Ordering},
27    },
28};
29
30use {
31    hyperlane::{
32        CONTENT_TYPE, Context, HashSetXxHash3_64, HttpStatus, Method, RETRY_AFTER, Request,
33        Response, ResponseError, ServerHook, Status, Stream, hash_set_xx_hash3_64,
34    },
35    lombok_macros::*,
36};