async-priority-limiter 0.4.4

Throttles prioritised tasks by limiting the max concurrent tasks and minimum time between tasks, with up to two levels based on keys
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 = "async-priority-limiter"
version = "0.4.4"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Throttles prioritised tasks by limiting the max concurrent tasks and minimum time between tasks, with up to two levels based on keys"
readme = "README.md"
keywords = [
    "priority",
    "rate-limit",
    "throttle",
    "async",
    "queue",
]
license = "ISC"
repository = "https://github.com/StefanTerdell/async-priority-limiter-rs/"

[features]
open_ai = [
    "reqwest",
    "dep:humantime",
]
reqwest = [
    "dep:reqwest",
    "dep:httpdate",
]

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

[dependencies.flume]
version = "^0.11"

[dependencies.httpdate]
version = "^1"
optional = true

[dependencies.humantime]
version = "^2.2"
optional = true

[dependencies.reqwest]
version = "^0.13"
optional = true
default-features = false

[dependencies.tokio]
version = "^1.45"
features = ["full"]

[dev-dependencies.futures]
version = "0.3.31"

[dev-dependencies.mockito]
version = "1.7.0"

[dev-dependencies.reqwest]
version = "0.13.1"
default-features = false

[dev-dependencies.tokio-test]
version = "0.4.4"