rateguard 0.7.1

Distributed rate limiting without a datastore: one global limit, enforced locally
Documentation
1
2
3
4
5
6
7
//! The atomics of the key table, swapped for loom's under `--cfg rateguard_loom` (not `loom`: tokio has its own `cfg(loom)` paths) so
//! that its races can be explored exhaustively.

#[cfg(rateguard_loom)]
pub(crate) use loom::sync::atomic::{AtomicU64, Ordering, fence};
#[cfg(not(rateguard_loom))]
pub(crate) use std::sync::atomic::{AtomicU64, Ordering, fence};