# 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 = "rcp-tools-throttle"
version = "0.32.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Internal library for RCP tools - resource throttling and rate limiting (not intended for direct use)"
documentation = "https://docs.rs/rcp-tools-throttle"
readme = "README.md"
keywords = [
    "internal",
    "throttle",
    "ratelimit",
]
categories = ["development-tools"]
license = "MIT"
repository = "https://github.com/wykurz/rcp"
resolver = "2"

[package.metadata.docs.rs]
cargo-args = [
    "--config",
    'build.rustflags=["--cfg", "tokio_unstable"]',
]
rustdoc-args = [
    "--cfg",
    "tokio_unstable",
]

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

[dependencies.tokio]
version = "1.52"
features = [
    "full",
    "parking_lot",
    "tracing",
]

[dependencies.tracing]
version = "0.1"

[dev-dependencies.tokio]
version = "1.52"
features = [
    "full",
    "parking_lot",
    "tracing",
    "test-util",
]

[lints.clippy.all]
level = "deny"
priority = -1

[lints.rustdoc]
missing_crate_level_docs = "allow"

[lints.rustdoc.all]
level = "deny"
priority = -1
