oxitoken 0.2.0

Fastest and most secure JWT encoding/validation library for Rust. Fully supports custom header/claims structs, an extendable validation pipeline, and is crypto-backend agnostic (built-in support for aws-lc-rs and openssl).
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.0"
name = "oxitoken"
version = "0.2.0"
authors = ["Dwayne Sykes <github-public@sykes.pw>"]
build = false
exclude = [
    "benches/",
    "docs/",
    "enc_bench.json",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Fastest and most secure JWT encoding/validation library for Rust. Fully supports custom header/claims structs, an extendable validation pipeline, and is crypto-backend agnostic (built-in support for aws-lc-rs and openssl)."
documentation = "https://docs.rs/oxitoken"
readme = "README.md"
keywords = [
    "jwt",
    "jws",
    "jose",
    "token",
    "auth",
]
categories = [
    "authentication",
    "cryptography",
    "security",
    "web-programming",
]
license = "Apache-2.0 WITH LLVM-exception"
repository = "https://github.com/dsykes16/oxiauth"

[package.metadata.docs.rs]
cargo-args = [
    "-Zunstable-options",
    "-Zrustdoc-scrape-examples",
]
features = ["async"]

[features]
async = ["dep:futures"]
aws-lc-rs = ["dep:aws-lc-rs"]
default = [
    "aws-lc-rs",
    "postquantum",
]
fips = ["aws-lc-rs?/fips"]
openssl = ["dep:openssl"]
postquantum = ["aws-lc-rs?/unstable"]

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

[[example]]
name = "custom_validators"
path = "examples/custom_validators.rs"

[[example]]
name = "full_example"
path = "examples/full_example.rs"
doc-scrape-examples = true
required-features = ["aws-lc-rs"]

[[example]]
name = "minimal_encode"
path = "examples/minimal_encode.rs"
doc-scrape-examples = true
required-features = ["aws-lc-rs"]

[[example]]
name = "minimal_encode_decode"
path = "examples/minimal_encode_decode.rs"

[[example]]
name = "revocation"
path = "examples/revocation.rs"

[[test]]
name = "aws_lc"
path = "tests/aws_lc.rs"
required-features = ["aws-lc-rs"]

[[test]]
name = "openssl"
path = "tests/openssl.rs"
required-features = ["openssl"]

[dependencies.aws-lc-rs]
version = "1.18.2"
optional = true

[dependencies.base64-simd]
version = "0.8.0"

[dependencies.futures]
version = "0.3.31"
optional = true

[dependencies.memchr]
version = "2.7.6"

[dependencies.openssl]
version = "0.10.74"
optional = true

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

[dependencies.serde_json]
version = "1.0.145"

[dependencies.thiserror]
version = "2.0.17"

[dev-dependencies.base64]
version = "0.22.1"

[dev-dependencies.criterion]
version = "0.7.0"

[dev-dependencies.jsonwebtoken]
version = "10.1.0"
features = ["aws_lc_rs"]

[dev-dependencies.serde_with]
version = "3.15.0"

[lints.clippy]
all = "deny"
dbg_macro = "deny"
expect_used = "deny"
nursery = "deny"
pedantic = "deny"
todo = "deny"
unwrap_used = "deny"

[lints.rust]
unsafe_code = "forbid"
warnings = "deny"

[lints.rust.unexpected_cfgs]
level = "allow"
priority = 0
check-cfg = ["cfg(coverage,coverage_nightly)"]

[lints.rust.unused]
level = "deny"
priority = -1