# 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 = "jaws" version = "1.0.0" authors = ["Alex Rudy "] description = "JSON Algorithms and Web Signing" readme = "README.md" keywords = [ "https", "networking", "tls", ] categories = [ "cryptography", "network-programming", "web-programming::http-server", ] license = "MIT" repository = "https://github.com/alexrudy/jaws" [package.metadata.docs.rs] all-features = true default-target = "x86_64-unknown-linux-gnu" [[example]] name = "acme-new-account" path = "examples/acme-new-account.rs" required-features = [ "fmt", "rsa", ] [[example]] name = "rfc7515-a2" path = "examples/rfc7515a2.rs" doc-scrape-examples = true required-features = [ "fmt", "rsa", ] [[example]] name = "dyn-key" path = "examples/dyn-key.rs" doc-scrape-examples = true required-features = [ "fmt", "rsa", ] [[example]] name = "save-key" path = "examples/save-key.rs" required-features = [ "fmt", "rsa", ] [[test]] name = "dyn-rsa-key" path = "tests/dyn-rsa-key.rs" doc-scrape-examples = true required-features = [ "fmt", "rsa", ] [dependencies.base64ct] version = "1.6" features = ["std"] [dependencies.bytes] version = "1.6" [dependencies.chrono] version = "0.4" features = ["serde"] [dependencies.der] version = "0.7.9" optional = true [dependencies.digest] version = "0.10" [dependencies.ecdsa] version = "0.16" features = [ "signing", "der", ] optional = true [dependencies.elliptic-curve] version = "0.13" features = [ "pkcs8", "jwk", "arithmetic", "sec1", "ecdh", ] optional = true [dependencies.hmac] version = "0.12" optional = true [dependencies.p256] version = "0.13" features = [ "ecdsa", "jwk", ] optional = true [dependencies.p384] version = "0.13" features = [ "ecdsa", "jwk", ] optional = true [dependencies.p521] version = "0.13" features = [ "ecdsa", "jwk", ] optional = true [dependencies.pkcs8] version = "0.10" [dependencies.rand_core] version = "0.6.4" optional = true default-features = false [dependencies.rsa] version = "0.9" features = ["sha2"] optional = true [dependencies.serde] version = "1" features = ["derive"] [dependencies.serde_json] version = "1" [dependencies.sha1] version = "0.10" [dependencies.sha2] version = "0.10" [dependencies.signature] version = "2.2" features = [ "digest", "std", ] [dependencies.spki] version = "0.7" optional = true [dependencies.thiserror] version = "1" [dependencies.url] version = "2.5" features = ["serde"] [dependencies.zeroize] version = "1.8" features = [ "serde", "derive", ] [dev-dependencies.static_assertions] version = "1.1.0" [features] default = [ "fmt", "rsa", "ecdsa", "p256", "p384", "p521", "hmac", ] der = ["dep:der"] ecdsa = [ "dep:ecdsa", "dep:elliptic-curve", ] fmt = [] hmac = ["dep:hmac"] p256 = [ "dep:p256", "ecdsa", ] p384 = [ "dep:p384", "ecdsa", ] p521 = [ "dep:p521", "ecdsa", ] rand = ["dep:rand_core"] rsa = ["dep:rsa"] spki = ["dep:spki"]