[[bench]]
harness = false
name = "encoding"
path = "benches/encoding.rs"
required-features = ["std", "clock"]
[[test]]
name = "rsa"
path = "tests/rsa.rs"
required-features = ["rsa/pem"]
[dependencies.anyhow]
default-features = false
version = "1.0.34"
[dependencies.base64ct]
features = ["alloc"]
version = "1.5.2"
[dependencies.chrono]
default-features = false
version = "0.4.22"
[dependencies.ciborium]
default-features = false
optional = true
version = "0.2.1"
[dependencies.ed25519-compact]
default-features = false
features = ["random"]
optional = true
version = "2.0.2"
[dependencies.ed25519-dalek]
default-features = false
optional = true
version = "2.0.0"
[dependencies.exonum-crypto]
default-features = false
features = ["sodiumoxide-crypto"]
optional = true
version = "1.0.0"
[dependencies.hmac]
version = "0.12.0"
[dependencies.k256]
default-features = false
features = ["ecdsa"]
optional = true
version = "0.13.0"
[dependencies.lazy_static]
optional = true
version = "1.4"
[dependencies.p256]
default-features = false
features = ["ecdsa"]
optional = true
version = "0.13.0"
[dependencies.rand_core]
version = "0.6.2"
[dependencies.rsa]
default-features = false
optional = true
version = "0.9"
[dependencies.secp256k1]
optional = true
version = "0.28"
[dependencies.serde]
default-features = false
features = ["alloc", "derive"]
version = "1.0"
[dependencies.serde_json]
default-features = false
features = ["alloc"]
version = "1.0"
[dependencies.sha2]
default-features = false
version = "0.10"
[dependencies.smallvec]
version = "1.11.1"
[dependencies.subtle]
default-features = false
version = "2.4.0"
[dependencies.zeroize]
features = ["zeroize_derive"]
version = "1.1"
[dev-dependencies.assert_matches]
version = "1.3"
[dev-dependencies.const-decoder]
version = "0.3.0"
[dev-dependencies.criterion]
version = "0.5.1"
[dev-dependencies.doc-comment]
version = "0.3.3"
[dev-dependencies.hex-buffer-serde]
version = "0.4.0"
[dev-dependencies.num-bigint]
package = "num-bigint-dig"
version = "0.8.2"
[dev-dependencies.rand]
version = "0.8.3"
[dev-dependencies.uuid]
features = ["serde", "v4"]
version = "1.0.0"
[dev-dependencies.version-sync]
version = "0.9"
[features]
clock = ["chrono/clock"]
default = ["std", "clock", "ciborium"]
es256k = ["secp256k1", "lazy_static"]
rsa = ["dep:rsa", "rand_core/getrandom", "sha2/oid"]
std = ["anyhow/std", "serde_json/std", "ciborium?/std"]
[package]
authors = ["Alex Ostrovski <ostrovski.alex@gmail.com>", "Akhil Velagapudi <akhilvelagapudi@gmail.com>", "Frank Denis <github@pureftpd.org>", "Maximilian Münchow <github@maxmuen.de>", "Eran Rundstein <eran@rundste.in>", "Bruno Green"]
categories = ["web-programming", "cryptography", "no-std"]
description = "Minimalistic JWT implementation with focus on type safety and secure cryptographic primitives"
edition = "2021"
exclude = ["e2e-tests"]
keywords = ["JWT", "token", "authorization"]
license = "Apache-2.0"
name = "jwt-compact"
readme = "README.md"
repository = "https://github.com/slowli/jwt-compact"
rust-version = "1.65"
version = "0.8.0"
[package.metadata.docs.rs]
features = ["exonum-crypto", "es256k", "p256", "rsa"]
rustdoc-args = ["--cfg", "docsrs"]