[package]
edition = "2024"
rust-version = "1.89"
name = "tollgate-client"
version = "0.32.2"
build = false
publish = true
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Instance-side quota runtime: background lease refill into the admission layer's LeaseSlot, and a bounded, batched, shed-on-overflow usage writer."
readme = "README.md"
keywords = [
"quota",
"metering",
"billing",
"usage",
"runtime",
]
categories = [
"asynchronous",
"concurrency",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/MorphIQ-Labs/tollgate"
[package.metadata.docs.rs]
all-features = true
[features]
http = [
"dep:reqwest",
"dep:serde",
"dep:serde_json",
"tollgate-store/wire",
]
[lib]
name = "tollgate_client"
path = "src/lib.rs"
[[test]]
name = "allocations"
path = "tests/allocations.rs"
[[test]]
name = "committed_guard"
path = "tests/committed_guard.rs"
[[test]]
name = "crash"
path = "tests/crash.rs"
[[test]]
name = "events"
path = "tests/events.rs"
[[test]]
name = "getting_started"
path = "tests/getting_started.rs"
[[test]]
name = "key_lifecycle"
path = "tests/key_lifecycle.rs"
[[test]]
name = "key_manager"
path = "tests/key_manager.rs"
[[test]]
name = "no_double_spend"
path = "tests/no_double_spend.rs"
[[test]]
name = "period_roller"
path = "tests/period_roller.rs"
[[test]]
name = "runtime"
path = "tests/runtime.rs"
[[test]]
name = "runtime_orchestration"
path = "tests/runtime_orchestration.rs"
[[test]]
name = "snapshot_manager"
path = "tests/snapshot_manager.rs"
[[test]]
name = "usage_attribution"
path = "tests/usage_attribution.rs"
[[bench]]
name = "key_projection_scaling"
path = "benches/key_projection_scaling.rs"
harness = false
[[bench]]
name = "managed_credentials"
path = "benches/managed_credentials.rs"
harness = false
[[bench]]
name = "readiness_scaling"
path = "benches/readiness_scaling.rs"
harness = false
[[bench]]
name = "usage_queue"
path = "benches/usage_queue.rs"
harness = false
[dependencies.arc-swap]
version = "1"
[dependencies.async-trait]
version = "0.1"
[dependencies.atomic-waker]
version = "1.1"
[dependencies.jiff]
version = "0.2"
[dependencies.reqwest]
version = "0.12"
features = [
"json",
"rustls-tls",
]
optional = true
default-features = false
[dependencies.serde]
version = "1.0"
features = [
"derive",
"rc",
]
optional = true
[dependencies.serde_json]
version = "1.0"
optional = true
[dependencies.tokio]
version = "1"
features = [
"macros",
"rt-multi-thread",
"sync",
"time",
"net",
"signal",
]
[dependencies.tollgate-admission]
version = "=0.32.2"
[dependencies.tollgate-auth]
version = "=0.32.2"
[dependencies.tollgate-core]
version = "=0.32.2"
[dependencies.tollgate-store]
version = "=0.32.2"
[dependencies.tracing]
version = "0.1"
[dependencies.zeroize]
version = "1"
[dev-dependencies.criterion]
version = "0.5"
[dev-dependencies.proptest]
version = "1.7"
[dev-dependencies.tokio]
version = "1"
features = [
"macros",
"rt-multi-thread",
"sync",
"time",
"net",
"signal",
"test-util",
]
[dev-dependencies.tracing-subscriber]
version = "0.3"
features = ["env-filter"]
[dev-dependencies.uuid]
version = "1"
features = ["v4"]
[lints.clippy]
allow_attributes_without_reason = "deny"
let_underscore_must_use = "deny"
[lints.rust]
unsafe_code = "forbid"