rusty_paseto 0.10.0

A type-driven, ergonomic alternative to JWT for secure stateless PASETO tokens.
Documentation
# 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.85"
name = "rusty_paseto"
version = "0.10.0"
authors = ["Roland Rodriguez <rolandrodriguez@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A type-driven, ergonomic alternative to JWT for secure stateless PASETO tokens."
documentation = "https://docs.rs/rusty_paseto/latest/rusty_paseto/"
readme = "README.md"
keywords = [
    "paseto",
    "token",
    "security",
    "api",
    "web",
]
categories = [
    "cryptography",
    "authentication",
    "encoding",
    "network-programming",
    "web-programming",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/rrrodzilla/rusty_paseto"

[package.metadata.docs.rs]
all-features = false
features = [
    "batteries_included",
    "v4_local",
    "v4_public",
]

[features]
batteries_included = ["generic"]
core = []
default = [
    "batteries_included",
    "v4_local",
    "v4_public",
]
generic = [
    "core",
    "serde",
    "erased-serde",
    "serde_json",
]
local = []
paserk = ["dep:paserk"]
public = []
v1 = []
v1_local = [
    "v1",
    "local",
    "core",
    "aes",
    "ctr",
    "chacha20",
    "hmac",
    "sha2",
    "blake2",
]
v1_public_insecure = [
    "v1",
    "public",
    "core",
]
v2 = []
v2_local = [
    "v2",
    "local",
    "core",
    "blake2",
    "chacha20poly1305",
]
v2_public = [
    "v2",
    "public",
    "core",
    "ed25519-dalek",
    "ring/std",
]
v3 = []
v3_local = [
    "v3",
    "local",
    "core",
    "aes",
    "ctr",
    "hmac",
    "sha2",
    "chacha20",
]
v3_public = [
    "v3",
    "public",
    "core",
    "p384",
    "sha2",
]
v4 = []
v4_local = [
    "v4",
    "local",
    "core",
    "blake2",
    "chacha20",
]
v4_public = [
    "v4",
    "public",
    "core",
    "ed25519-dalek",
    "ring/std",
]

[lib]
name = "rusty_paseto"
path = "src/lib.rs"
doctest = true

[[example]]
name = "actix_identity"
path = "examples/actix_identity/main.rs"
required-features = ["default"]

[[test]]
name = "untrusted_footer_key_rotation"
path = "tests/untrusted_footer_key_rotation.rs"

[[test]]
name = "version1_test_vectors"
path = "tests/version1_test_vectors.rs"

[[test]]
name = "version2_test_vectors"
path = "tests/version2_test_vectors.rs"

[[test]]
name = "version3_test_vectors"
path = "tests/version3_test_vectors.rs"

[[test]]
name = "version4_test_vectors"
path = "tests/version4_test_vectors.rs"

[dependencies.aes]
version = "0.8"
optional = true

[dependencies.base64]
version = "0.22"
optional = false

[dependencies.blake2]
version = "0.10"
optional = true

[dependencies.chacha20]
version = "0.9"
optional = true

[dependencies.chacha20poly1305]
version = "0.10"
optional = true

[dependencies.ctr]
version = "0.9"
optional = true

[dependencies.digest]
version = "0.10"

[dependencies.ed25519-dalek]
version = "2.0"
features = ["zeroize"]
optional = true

[dependencies.erased-serde]
version = "0.4"
optional = true

[dependencies.hex]
version = "0.4"
optional = false

[dependencies.hmac]
version = "0.12"
optional = true

[dependencies.iso8601]
version = "0.6"

[dependencies.p384]
version = "0.13"
optional = true

[dependencies.paserk]
version = "0.4.0"
optional = true

[dependencies.rand_core]
version = "0.9"

[dependencies.ring]
version = "0.17"
features = ["std"]
optional = false

[dependencies.serde]
version = "1.0"
features = ["derive"]
optional = true

[dependencies.serde_json]
version = "1.0"
optional = true

[dependencies.sha2]
version = "0.10"
optional = true

[dependencies.subtle]
version = "2.6"

[dependencies.thiserror]
version = "2.0"

[dependencies.time]
version = "0.3.47"
features = [
    "parsing",
    "formatting",
]

[dependencies.zeroize]
version = "1.8"
features = ["zeroize_derive"]

[dev-dependencies.actix-identity]
version = "0.4"

[dev-dependencies.actix-utils]
version = "3.0"

[dev-dependencies.actix-web]
version = "4"

[dev-dependencies.anyhow]
version = "1.0"

[dev-dependencies.erased-serde]
version = "0.4"

[dev-dependencies.primes]
version = "0.4"

[dev-dependencies.proptest]
version = "1.4"

[dev-dependencies.serde_json]
version = "1.0"

[dev-dependencies.tokio]
version = "1.17"

[dev-dependencies.uuid]
version = "1.8"
features = ["v4"]

[lints.clippy]
expect_used = "deny"
unwrap_used = "deny"

[lints.rust]
unsafe_code = "forbid"
warnings = "deny"