# 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 = "2021" rust-version = "1.70" name = "jwt-compact" version = "0.9.0-beta.1" authors = [ "Alex Ostrovski ", "Akhil Velagapudi ", "Frank Denis ", "Maximilian Münchow ", "Eran Rundstein ", "Bruno Green", ] build = false exclude = ["e2e-tests"] autobins = false autoexamples = false autotests = false autobenches = false description = "Minimalistic JWT implementation with focus on type safety and secure cryptographic primitives" readme = "README.md" keywords = [ "JWT", "token", "authorization", ] categories = [ "web-programming", "cryptography", "no-std", ] license = "Apache-2.0" repository = "https://github.com/slowli/jwt-compact" [package.metadata.docs.rs] features = [ "exonum-crypto", "es256k", "p256", "rsa", ] rustdoc-args = [ "--cfg", "docsrs", ] [lib] name = "jwt_compact" path = "src/lib.rs" [[test]] name = "algorithms" path = "tests/algorithms.rs" [[test]] name = "jwk" path = "tests/jwk.rs" [[test]] name = "rsa" path = "tests/rsa.rs" required-features = ["rsa/pem"] [[test]] name = "version_match" path = "tests/version_match.rs" [[bench]] name = "encoding" path = "benches/encoding.rs" harness = false required-features = [ "std", "clock", ] [dependencies.anyhow] version = "1.0.89" default-features = false [dependencies.base64ct] version = "1.5.2" features = ["alloc"] [dependencies.chrono] version = "0.4.38" default-features = false [dependencies.ciborium] version = "0.2.2" optional = true default-features = false [dependencies.ed25519-compact] version = "2.1.1" features = ["random"] optional = true default-features = false [dependencies.ed25519-dalek] version = "2.1.1" optional = true default-features = false [dependencies.exonum-crypto] version = "1.0.0" features = ["sodiumoxide-crypto"] optional = true default-features = false [dependencies.hmac] version = "0.12.0" [dependencies.k256] version = "0.13.4" features = ["ecdsa"] optional = true default-features = false [dependencies.lazy_static] version = "1.5" optional = true [dependencies.p256] version = "0.13.0" features = ["ecdsa"] optional = true default-features = false [dependencies.rand_core] version = "0.6.2" [dependencies.rsa] version = "0.9" optional = true default-features = false [dependencies.secp256k1] version = "0.29" optional = true [dependencies.serde] version = "1.0" features = [ "alloc", "derive", ] default-features = false [dependencies.serde_json] version = "1.0" features = ["alloc"] default-features = false [dependencies.sha2] version = "0.10" default-features = false [dependencies.smallvec] version = "1.13.2" [dependencies.subtle] version = "2.6.1" default-features = false [dependencies.zeroize] version = "1.8" features = ["zeroize_derive"] [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] version = "0.8.2" package = "num-bigint-dig" [dev-dependencies.rand] version = "0.8.3" [dev-dependencies.uuid] version = "1.10.0" features = [ "serde", "v4", ] [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", ]