# 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" name = "jwt2" version = "0.1.0-alpha.0" authors = ["tecc "] build = false autobins = false autoexamples = false autotests = false autobenches = false description = """ JSON Web Tokens done right... hopefully. """ readme = "README.md" license = "Apache-2.0" repository = "https://github.com/tecc/jwt2" [package.metadata.docs.rs] all-features = true rustdoc-args = [ "--cfg", "docsrs", ] [lib] name = "jwt2" path = "src/lib.rs" [dependencies.base64ct] version = "1.6" features = ["alloc"] [dependencies.ecdsa] version = "0.16.9" optional = true [dependencies.hmac] version = "0.12.1" optional = true [dependencies.p256] version = "0.13.2" optional = true [dependencies.p384] version = "0.13.0" optional = true [dependencies.rand_core] version = "0.6" optional = true [dependencies.rsa] version = "0.9.6" features = ["sha2"] optional = true [dependencies.serde] version = "1" features = ["derive"] [dependencies.serde_json] version = "1" [dependencies.sha2] version = "0.10.8" optional = true [dependencies.signature] version = "2.2.0" optional = true [dependencies.thiserror] version = "1" [features] default = [] ecdsa = [ "dep:ecdsa", "dep:signature", "dep:p256", "p256/ecdsa", "dep:p384", "p384/ecdsa", ] hmac-sha2 = [ "dep:hmac", "dep:sha2", ] rand = ["dep:rand_core"] rsa-pkcs1 = [ "dep:rsa", "dep:signature", "dep:sha2", ]