hyperlane-plugin-ip-filter 22.14.1

A zero-allocation IP allowlist/denylist and anti-spoofing client IP extraction plugin for the Hyperlane framework with /8 radix-indexed CIDR lookup, IPv4-mapped IPv6 canonicalization, RFC 7239 Forwarded/X-Forwarded-For right-to-left proxy peeling, and prebuilt 403 wire responses.
Documentation
//! hyperlane-plugin-ip-filter
//!
//! Zero-allocation IP allowlist/denylist and anti-spoofing client IP extraction
//! plugin for Hyperlane with `/8` radix-indexed IPv4/IPv6 CIDR lookup,
//! IPv4-mapped IPv6 canonicalization, right-to-left trusted proxy peeling, and
//! prebuilt `403 Forbidden` wire responses.

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,
    collections::VecDeque,
    error::Error,
    fmt::{self, Display, Formatter},
    net::{IpAddr, Ipv4Addr, Ipv6Addr, SocketAddr},
    str::FromStr,
    sync::OnceLock,
};

use {
    hyperlane::{
        CONTENT_TYPE, Context, FORWARDED, HashSetXxHash3_64, HttpStatus, RequestHeaders, Response,
        ResponseData, ResponseError, ServerHook, Status, Stream, X_FORWARDED_FOR, X_REAL_IP,
        hash_set_xx_hash3_64,
    },
    lombok_macros::*,
};