hyperlane-plugin-webhook 22.14.1

A production inbound HTTP webhook verification plugin for the Hyperlane framework featuring zero-allocation precomputed-midstate pure-Rust HMAC-SHA256 (Hex, Base64, and Stripe-style timestamped schemes), per-route secret rotation, timestamp skew enforcement, 64-shard bounded TTL replay-nonce caching, and verified WebhookEvent Context injection.
Documentation
//! hyperlane-plugin-webhook
//!
//! Production inbound HTTP webhook verification plugin for Hyperlane with
//! zero-allocation precomputed-midstate pure-Rust HMAC-SHA256 (`Hex`, `Base64`,
//! and Stripe-style `t=...,v1=...` schemes), per-route secret rotation,
//! timestamp skew enforcement, 64-shard bounded TTL replay-nonce caching, and
//! verified [`WebhookEvent`] `Context` injection.

mod r#const;
mod r#enum;
mod r#fn;
mod r#impl;
mod r#static;
mod r#struct;
mod r#type;

#[cfg(test)]
#[path = "../tests/mod.rs"]
mod tests;

pub use {r#const::*, r#enum::*, r#fn::*, r#struct::*};

pub(crate) use {r#static::*, r#type::*};

use std::{
    array::from_fn,
    cmp::Reverse,
    collections::VecDeque,
    fmt::{self, Debug, Formatter},
    sync::{
        Arc, OnceLock, RwLock, RwLockWriteGuard,
        atomic::{AtomicUsize, Ordering},
    },
    time::{Duration, SystemTime, UNIX_EPOCH},
};

use {
    hyperlane::{
        CONTENT_TYPE, Context, HashMapXxHash3_64, HttpStatus, RequestHeaders, Response,
        ResponseData, ResponseError, ServerHook, Status, Stream, hash_map_xx_hash3_64,
    },
    lombok_macros::*,
};