distkit 0.4.0

A toolkit of distributed systems primitives for Rust, backed by Redis
Documentation
#![doc = include_str!("../docs/lib.md")]
#![cfg_attr(docsrs, feature(doc_cfg), warn(rustdoc::broken_intra_doc_links))]
#![deny(missing_docs)]
#![forbid(unsafe_code)]

mod common;
pub use common::*;
mod comparator;
pub use comparator::*;
#[cfg(feature = "counter")]
pub mod counter;

#[cfg(feature = "instance-aware-counter")]
pub mod icounter;

/// Rate limiting via the [`trypema`](https://docs.rs/trypema) crate.
///
/// This module re-exports all public types from `trypema`, providing
/// sliding-window rate limiting with local, Redis-backed, and hybrid
/// providers. Enable the `trypema` feature to use this module.
#[cfg(feature = "trypema")]
#[cfg_attr(docsrs, doc(cfg(feature = "trypema")))]
pub mod trypema;

mod error;
pub use error::*;

#[cfg(all(feature = "counter", feature = "instance-aware-counter"))]
#[doc(hidden)]
pub mod __doctest_helpers;