atomic_token_bucket 0.1.0

Lock-free Token Bucket algorithm implemented using atomics
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 = "atomic_token_bucket"
version = "0.1.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Lock-free Token Bucket algorithm implemented using atomics"
homepage = "https://github.com/alexpyattaev/atomic_token_bucket"
readme = "README.md"
keywords = [
    "network",
    "shaping",
    "limiter",
]
categories = [
    "algorithms",
    "concurrency",
]
license = "MIT"
repository = "https://github.com/alexpyattaev/atomic_token_bucket"

[features]
keyed_rate_limiter = ["dep:dashmap"]
shuttle-test = [
    "dep:shuttle",
    "solana-svm-type-overrides/shuttle-test",
]

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

[[bench]]
name = "token_bucket"
path = "benches/token_bucket.rs"
harness = false

[dependencies.cfg-if]
version = "1"

[dependencies.dashmap]
version = "5"
features = ["raw-api"]
optional = true

[dependencies.shuttle]
version = "0.7"
optional = true

[dependencies.solana-svm-type-overrides]
version = "3"

[dev-dependencies]