attested-request 0.1.1

Sign and verify World App attested-key canonical requests (TFH RFC 9421 integrity profile).
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 = "2024"
rust-version = "1.98.1"
name = "attested-request"
version = "0.1.1"
authors = ["World Contributors"]
build = false
exclude = ["tests/"]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Sign and verify World App attested-key canonical requests (TFH RFC 9421 integrity profile)."
homepage = "https://github.com/worldcoin/attested-proxy"
readme = "README.md"
keywords = [
    "rfc9421",
    "http-signatures",
    "app-attest",
    "attestation",
]
categories = [
    "authentication",
    "cryptography",
    "web-programming::http-server",
]
license = "MIT"
license-file = "LICENSE"
repository = "https://github.com/worldcoin/attested-proxy"

[features]
default = []
remote-jwks = [
    "dep:reqwest",
    "dep:tokio",
    "dep:arc-swap",
    "dep:tracing",
]
test-util = []

[lib]
name = "attested_request"
path = "src/lib.rs"

[[example]]
name = "generate-vectors"
path = "examples/generate-vectors.rs"
required-features = ["test-util"]

[dependencies.arc-swap]
version = "1.7"
optional = true

[dependencies.base64]
version = "0.22"

[dependencies.ciborium]
version = "0.2"

[dependencies.getrandom]
version = "0.3"
features = ["std"]

[dependencies.http]
version = "1"

[dependencies.jsonwebtoken]
version = "11.1"
features = ["aws_lc_rs"]
default-features = false

[dependencies.p256]
version = "0.13"
features = [
    "ecdsa",
    "std",
]
default-features = false

[dependencies.reqwest]
version = "0.12"
features = ["rustls-tls"]
optional = true
default-features = false

[dependencies.serde]
version = "1"
features = ["derive"]

[dependencies.serde_bytes]
version = "0.11"

[dependencies.serde_json]
version = "1"

[dependencies.sfv]
version = "0.15"

[dependencies.sha2]
version = "0.10"

[dependencies.thiserror]
version = "2"

[dependencies.tokio]
version = "1.48"
features = [
    "macros",
    "net",
    "rt-multi-thread",
    "signal",
    "sync",
    "time",
]
optional = true

[dependencies.tracing]
version = "0.1"
optional = true

[dev-dependencies.tokio]
version = "1.48"
features = [
    "macros",
    "net",
    "rt-multi-thread",
    "signal",
    "sync",
    "time",
]

[dev-dependencies.wiremock]
version = "0.6"

[lints.clippy]
missing_panics_doc = "allow"
module_name_repetitions = "allow"

[lints.clippy.pedantic]
level = "warn"
priority = -1

[lints.rust]
missing_docs = "warn"
unreachable_pub = "warn"
unsafe_code = "forbid"