[package]
edition = "2024"
rust-version = "1.94"
name = "fastauth-plugin-api-key"
version = "0.3.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "API keys for fastauth: hashed per-user keys with expiry, usage limits, refills, per-key rate limits and permissions."
readme = "README.md"
keywords = [
"auth",
"authentication",
"axum",
"sqlx",
"session",
]
categories = [
"authentication",
"web-programming",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/lassejlv/fastauth"
[lib]
name = "fastauth_plugin_api_key"
path = "src/lib.rs"
[[test]]
name = "api_key"
path = "tests/api_key.rs"
[[test]]
name = "sqlite"
path = "tests/sqlite.rs"
[dependencies.fastauth-core]
version = "0.3.0"
features = ["macros"]
[dependencies.http]
version = "1.5.0"
[dependencies.serde]
version = "1.0.229"
features = ["derive"]
[dependencies.serde_json]
version = "1.0.154"
[dependencies.time]
version = "0.3.45"
features = [
"serde",
"formatting",
"parsing",
]
[dev-dependencies.axum]
version = "0.8.9"
features = ["macros"]
[dev-dependencies.bytes]
version = "1.12.2"
[dev-dependencies.fastauth-axum]
version = "0.3.0"
[dev-dependencies.fastauth-sqlx]
version = "0.3.0"
features = ["sqlite"]
default-features = false
[dev-dependencies.http-body-util]
version = "0.1.5"
[dev-dependencies.tokio]
version = "1.54.1"
features = [
"macros",
"rt-multi-thread",
"time",
]
[dev-dependencies.tower]
version = "0.5.3"
features = ["util"]
[lints.clippy.all]
level = "warn"
priority = -1
[lints.rust]
missing_debug_implementations = "allow"
unsafe_code = "forbid"