jsonwebtoken 10.2.0

Create and decode JWTs in a strongly typed way.
Documentation
[badges.maintenance]
status = "passively-maintained"

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

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

[dependencies.base64]
version = "0.22"

[dependencies.ed25519-dalek]
features = ["pkcs8"]
optional = true
version = "2.1.1"

[dependencies.hmac]
optional = true
version = "0.12.1"

[dependencies.p256]
features = ["ecdsa"]
optional = true
version = "0.13.2"

[dependencies.p384]
features = ["ecdsa"]
optional = true
version = "0.13.0"

[dependencies.pem]
optional = true
version = "3"

[dependencies.rand]
default-features = false
features = ["std"]
optional = true
version = "0.8.5"

[dependencies.rsa]
optional = true
version = "0.9.6"

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

[dependencies.serde_json]
version = "1.0"

[dependencies.sha2]
features = ["oid"]
optional = true
version = "0.10.7"

[dependencies.signature]
features = ["std"]
version = "2.2.0"

[dependencies.simple_asn1]
optional = true
version = "0.6"

[dev-dependencies.ed25519-dalek]
features = ["pkcs8", "rand_core"]
version = "2.1.1"

[dev-dependencies.rand]
default-features = false
features = ["std"]
version = "0.8.5"

[dev-dependencies.rand_core]
version = "0.6.4"

[dev-dependencies.wasm-bindgen-test]
version = "0.3.1"

[features]
aws_lc_rs = ["aws-lc-rs"]
default = ["use_pem"]
rust_crypto = ["ed25519-dalek", "hmac", "p256", "p384", "rand", "rsa", "sha2"]
use_pem = ["pem", "simple_asn1"]

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

[package]
authors = ["Vincent Prouillet <hello@vincentprouillet.com>"]
autobenches = false
autobins = false
autoexamples = false
autolib = false
autotests = false
build = false
description = "Create and decode JWTs in a strongly typed way."
edition = "2024"
homepage = "https://github.com/Keats/jsonwebtoken"
include = ["src/**/*", "benches/**/*", "tests/**/*", "LICENSE", "README.md", "CHANGELOG.md"]
keywords = ["jwt", "api", "token", "jwk"]
license = "MIT"
name = "jsonwebtoken"
readme = "README.md"
repository = "https://github.com/Keats/jsonwebtoken"
rust-version = "1.85.0"
version = "10.2.0"

[package.metadata.docs.rs]
features = ["rust_crypto"]

[target.'cfg(all(target_arch = "wasm32", not(any(target_os = "emscripten", target_os = "wasi"))))'.dev-dependencies.criterion]
default-features = false
version = "0.4"

[target.'cfg(all(target_arch = "wasm32", not(any(target_os = "emscripten", target_os = "wasi"))))'.dev-dependencies.time]
features = ["wasm-bindgen"]
version = "0.3"

[target.'cfg(not(all(target_arch = "wasm32", not(any(target_os = "emscripten", target_os = "wasi")))))'.dev-dependencies.criterion]
version = "0.4"

[target.'cfg(not(all(target_arch = "wasm32", not(any(target_os = "emscripten", target_os = "wasi")))))'.dev-dependencies.time]
version = "0.3"

[target.'cfg(target_arch = "wasm32")'.dependencies.getrandom]
version = "0.2"

[target.'cfg(target_arch = "wasm32")'.dependencies.js-sys]
version = "0.3"

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

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

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