[package]
edition = "2024"
name = "waitstate"
version = "0.1.0"
authors = ["WaitState <hello@waitstate.io>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "WaitState Rust SDK — synchronous in-memory traffic gating with background telemetry"
homepage = "https://waitstate.io"
readme = "README.md"
keywords = [
"waitstate",
"rate-limiting",
"traffic-gating",
"circuit-breaker",
"load-shedding",
]
categories = [
"web-programming",
"network-programming",
]
license = "Apache-2.0"
repository = "https://github.com/waitstate-io/engine"
[features]
default = ["runtime"]
runtime = [
"dep:arc-swap",
"dep:dashmap",
"dep:reqwest",
"dep:tokio",
"dep:tracing",
"dep:uuid",
]
[lib]
name = "waitstate"
path = "src/lib.rs"
[[test]]
name = "cross_sdk"
path = "tests/cross_sdk.rs"
[[test]]
name = "policy_serde"
path = "tests/policy_serde.rs"
[dependencies.arc-swap]
version = "1"
optional = true
[dependencies.dashmap]
version = "6"
optional = true
[dependencies.hex]
version = "0.4"
[dependencies.hmac]
version = "0.12"
[dependencies.reqwest]
version = "0.12"
features = [
"rustls-tls",
"json",
"blocking",
]
optional = true
default-features = false
[dependencies.serde]
version = "1"
features = ["derive"]
[dependencies.serde_json]
version = "1"
[dependencies.sha2]
version = "0.10"
[dependencies.tokio]
version = "1"
features = [
"rt",
"time",
"macros",
"sync",
]
optional = true
[dependencies.tracing]
version = "0.1"
optional = true
[dependencies.uuid]
version = "1"
features = ["v4"]
optional = true
[dev-dependencies.tokio]
version = "1"
features = [
"rt",
"time",
"macros",
"sync",
"rt-multi-thread",
]