token-bucket 11.1.0

Zero-dependency, lock-free atomic GCRA, Fixed-Window, Token-Bucket, and 64-way sharded bounded keyed rate-limiting engine.
Documentation
/// Zero-dependency 64-bit non-cryptographic word-at-a-time hasher with SplitMix64 finalizer.
#[derive(Clone, Copy, Debug)]
pub(crate) struct FastHasher {
    /// Rolling 64-bit hash accumulator state.
    pub(crate) state: u64,
}

/// Seeded `BuildHasher` factory producing `FastHasher` instances.
#[derive(Clone, Copy, Debug)]
pub(crate) struct FastBuildHasher {
    /// Per-instance 64-bit seed mixing time and address entropy.
    pub(crate) seed: u64,
}

/// Precomputed Granlund-Montgomery multiplier and shifts for branchless exact `u64` division.
#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
pub(crate) struct FastDivU64 {
    /// Magic 64-bit reciprocal multiplier.
    pub(crate) mul: u64,
    /// First post-subtraction right shift (`0` for divisor `1`, else `1`).
    pub(crate) sh1: u32,
    /// Final right shift (`ceil(log2(d)) - 1`, or `0` for divisor `1`).
    pub(crate) sh2: u32,
}