tokenkit 1.0.0

Type-safe JWT encode/decode for Rust: configurable validation, secret rotation, key rotation, and revocation support
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"
rust-version = "1.88"
name = "tokenkit"
version = "1.0.0"
build = false
exclude = ["/target"]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Type-safe JWT encode/decode for Rust: configurable validation, secret rotation, key rotation, and revocation support"
readme = "README.md"
keywords = [
    "jwt",
    "token",
    "authentication",
    "jwk",
    "security",
]
categories = [
    "authentication",
    "web-programming",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/WyattAu/tokenkit"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[package.metadata.layers]
tier = "L1"

[features]
default = ["std"]
jwks = [
    "tokio",
    "dep:reqwest",
]
revocation = [
    "tokio",
    "dep:async-trait",
]
revocation-redis = [
    "revocation",
    "dep:redis",
]
rotation = []
std = []

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

[[test]]
name = "algorithms"
path = "tests/algorithms.rs"

[[test]]
name = "config_matrix"
path = "tests/config_matrix.rs"

[[test]]
name = "jwks_hardening"
path = "tests/jwks_hardening.rs"

[[test]]
name = "mutant_kills"
path = "tests/mutant_kills.rs"

[[test]]
name = "revocation_redis"
path = "tests/revocation_redis.rs"

[[test]]
name = "rotation"
path = "tests/rotation.rs"

[[test]]
name = "validation"
path = "tests/validation.rs"

[[bench]]
name = "token_bench"
path = "benches/token_bench.rs"
harness = false

[dependencies.async-trait]
version = "0.1"
optional = true

[dependencies.chrono]
version = "0.4"
features = ["serde"]

[dependencies.jsonwebtoken]
version = "11"
features = ["rust_crypto"]

[dependencies.redis]
version = "0.25"
features = ["tokio-comp"]
optional = true

[dependencies.reqwest]
version = "0.13"
features = [
    "json",
    "rustls",
]
optional = true
default-features = false

[dependencies.serde]
version = "1"
features = ["derive"]

[dependencies.serde_json]
version = "1"

[dependencies.thiserror]
version = "2"

[dependencies.tokio]
version = "1"
features = [
    "rt",
    "rt-multi-thread",
    "sync",
]
optional = true

[dependencies.uuid]
version = "1"
features = ["v4"]

[dev-dependencies.criterion]
version = "0.5"
features = ["html_reports"]

[dev-dependencies.proptest]
version = "1"

[lints.clippy]
expect_used = "warn"
indexing_slicing = "deny"
panic = "deny"
unwrap_used = "deny"