hyperlane-plugin-session 23.1.0

A high-concurrency sharded session management plugin for the Hyperlane framework with pluggable async SessionStore traits, optional HMAC-SHA256 signed cookies, dirty-tracked zero-write reads, and session-fixation ID regeneration.
Documentation
//! hyperlane-plugin-session
//!
//! High-concurrency sharded session plugin for Hyperlane with pluggable async
//! [`SessionStore`] traits, optional HMAC-SHA256 signed cookies, dirty-tracked
//! zero-write reads, and session-fixation ID regeneration.

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

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

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

pub(crate) use r#static::*;

#[cfg(target_arch = "aarch64")]
#[cfg(target_feature = "sha2")]
#[cfg(target_endian = "little")]
use std::arch::aarch64::{
    uint32x4_t, vaddq_u32, vld1q_u8, vld1q_u32, vreinterpretq_u32_u8, vrev32q_u8, vsha256h2q_u32,
    vsha256hq_u32, vsha256su0q_u32, vsha256su1q_u32, vst1q_u32,
};
use std::{
    array::from_fn,
    collections::{HashMap, VecDeque, hash_map::Entry},
    future::Future,
    hash::{BuildHasher, Hasher},
    pin::Pin,
    process,
    str::from_utf8,
    sync::{
        Arc, Mutex, MutexGuard, OnceLock, RwLock, RwLockReadGuard, RwLockWriteGuard,
        atomic::{AtomicBool, AtomicU64, AtomicUsize, Ordering},
    },
    time::{Duration, SystemTime, UNIX_EPOCH},
};

use {
    hyperlane::{
        ArcAnySendSync, COOKIE, Context, CookieBuilder, SET_COOKIE, ServerHook, Status, Stream,
    },
    lombok_macros::*,
};