Skip to main content

hyperlane_plugin_canary/
lib.rs

1//! hyperlane-plugin-canary
2//!
3//! Deterministic feature-flag, A/B experimentation, and progressive canary
4//! rollout middleware for Hyperlane with `XxHash3_64` basis-point sticky
5//! bucketing, forced overrides, and `X-Variant`/`Vary` response propagation.
6
7mod r#const;
8mod r#fn;
9mod r#impl;
10mod r#static;
11mod r#struct;
12
13#[cfg(test)]
14#[path = "../tests/mod.rs"]
15mod tests;
16
17pub use {r#const::*, r#fn::*, r#struct::*};
18
19pub(crate) use r#static::*;
20
21use std::{
22    collections::VecDeque,
23    hash::Hasher,
24    str::from_utf8,
25    sync::{Arc, OnceLock},
26};
27
28use {
29    hyperlane::{
30        ArcAnySendSync, COOKIE, Context, Request, Response, ServerHook, Status, Stream, VARY,
31        XxHash3_64,
32    },
33    lombok_macros::*,
34};