trypema 0.1.0-rc.8

High-performance rate limiting primitives in Rust, designed for concurrency safety, low overhead, and predictable latency.
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
name = "trypema"
version = "0.1.0-rc.8"
authors = ["Oyinbo David Bayode <dev.davexoyinbo@gmail.com>"]
build = false
exclude = [
    ".github",
    "Makefile",
    "compose.yaml",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "High-performance rate limiting primitives in Rust, designed for concurrency safety, low overhead, and predictable latency."
homepage = "https://trypema.davidoyinbo.com/"
documentation = "https://docs.rs/trypema"
readme = "README.md"
keywords = [
    "rate-limiting",
    "rate-limiter",
    "throttling",
    "concurrency",
    "atomic",
]
categories = [
    "algorithms",
    "concurrency",
    "data-structures",
]
license = "MIT"
repository = "https://github.com/dev-davexoyinbo/trypema"

[package.metadata.docs.rs]
features = ["redis-tokio"]
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[features]
redis-smol = [
    "redis",
    "redis/smol-comp",
    "redis/aio",
    "redis/connection-manager",
    "dep:smol",
]
redis-tokio = [
    "redis",
    "redis/tokio-comp",
    "redis/aio",
    "redis/connection-manager",
    "dep:tokio",
]

[lib]
name = "trypema"
path = "src/lib.rs"

[dependencies.dashmap]
version = "6.1.0"

[dependencies.rand]
version = "0.10.0"

[dependencies.redis]
version = "1.0.4"
features = ["script"]
optional = true
default-features = false

[dependencies.smol]
version = "2.0.2"
optional = true

[dependencies.strum]
version = "0.27.2"

[dependencies.strum_macros]
version = "0.27.2"

[dependencies.thiserror]
version = "2.0.18"

[dependencies.tokio]
version = "1.49.0"
features = [
    "rt",
    "time",
]
optional = true

[dependencies.tracing]
version = "0.1.44"

[dev-dependencies.tokio]
version = "1.49.0"
features = ["rt-multi-thread"]