# 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.65.0" name = "pasta-tokens" version = "0.1.0-rc.7" authors = ["Conrad Ludgate "] description = "Platform Agnostic SEcurity TOkens (PASETO) is a secure alternative to JOSE/JWT" readme = "README.md" keywords = [ "paseto", "token", "security", ] categories = [ "cryptography", "authentication", "encoding", "network-programming", "web-programming", ] license = "MIT" repository = "https://github.com/conradludgate/pasta-tokens" [package.metadata.docs.rs] all-features = true rustdoc-args = [ "--cfg", "docsrs", ] [profile.dev.package."*"] opt-level = 2 debug = 0 incremental = false [profile.release] debug = 1 [[test]] name = "paseto-test-vectors" path = "tests/paseto.rs" harness = false [[test]] name = "paserk-test-vectors" path = "tests/paserk.rs" harness = false [[bench]] name = "bench" harness = false [dependencies.aes] version = "0.8.2" optional = true [dependencies.argon2] version = "0.5.0" optional = true [dependencies.base64ct] version = "1.6.0" features = ["alloc"] [dependencies.blake2] version = "0.10.6" optional = true [dependencies.chacha20] version = "0.9.1" optional = true [dependencies.cipher] version = "0.4.4" [dependencies.ctr] version = "0.9.2" optional = true [dependencies.curve25519-dalek] version = "4.0.0" optional = true [dependencies.digest] version = "0.10.7" features = ["mac"] [dependencies.ecdsa] version = "0.16.0" features = [ "digest", "hazmat", ] optional = true [dependencies.ed25519-dalek] version = "2.0.0" features = [ "hazmat", "digest", "zeroize", ] optional = true [dependencies.generic-array] version = "0.14" [dependencies.hkdf] version = "0.12.3" optional = true [dependencies.hmac] version = "0.12.1" optional = true [dependencies.p384] version = "0.13.0" features = [ "ecdh", "pkcs8", "ecdsa-core", ] optional = true [dependencies.pbkdf2] version = "0.12.1" optional = true [dependencies.rand] version = "0.8.5" [dependencies.serde] version = "1" features = ["derive"] [dependencies.serde_json] version = "1" [dependencies.sha2] version = "0.10.2" optional = true [dependencies.signature] version = "2.0.0" [dependencies.subtle] version = "2.5.0" [dev-dependencies.criterion] version = "0.5" [dev-dependencies.ff] version = "0.13.0" [dev-dependencies.hex] version = "0.4" [dev-dependencies.libtest-mimic] version = "0.6.1" [dev-dependencies.rand] version = "0.8" [dev-dependencies.time] version = "0.3" features = [ "serde", "formatting", "parsing", ] [dev-dependencies.uuid] version = "1" features = [ "v4", "serde", ] [features] default = [] v3 = [ "v3-paseto", "v3-paserk", ] v3-id = ["dep:sha2"] v3-local = [ "dep:aes", "dep:ctr", "dep:hkdf", "dep:hmac", "dep:sha2", ] v3-paserk = [ "v3-id", "v3-pbkw", "v3-pke", "v3-wrap", ] v3-paseto = [ "v3-local", "v3-public", ] v3-pbkw = [ "dep:pbkdf2", "v3-local", ] v3-pke = [ "v3-local", "v3-public", ] v3-public = [ "dep:p384", "dep:ecdsa", ] v3-wrap = ["v3-local"] v4 = [ "v4-paseto", "v4-paserk", ] v4-id = ["dep:blake2"] v4-local = [ "dep:blake2", "dep:chacha20", ] v4-paserk = [ "v4-id", "v4-pbkw", "v4-pke", "v4-wrap", ] v4-paseto = [ "v4-local", "v4-public", ] v4-pbkw = [ "dep:argon2", "v4-local", ] v4-pke = [ "v4-local", "v4-public", "dep:curve25519-dalek", ] v4-public = ["dep:ed25519-dalek"] v4-wrap = ["v4-local"] [target."cfg(fuzzing)".dependencies.arbitrary] version = "1.3" features = ["derive"]