# 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.88"
name = "aitp-transport-http"
version = "0.2.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "HTTP client and server bindings for AITP (feature-gated)"
homepage = "https://github.com/agentidentitytrustprotocol/aitp-rs"
readme = false
keywords = [
    "aitp",
    "agent",
    "trust",
    "identity",
    "ed25519",
]
categories = [
    "cryptography",
    "authentication",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/agentidentitytrustprotocol/aitp-rs"

[features]
client = [
    "dep:reqwest",
    "dep:tokio",
]
client-spki-pinning = [
    "client",
    "dep:rustls",
    "dep:rustls-pki-types",
    "dep:x509-parser",
]
default = []
experimental-renewal = ["aitp-tct/experimental-renewal"]
experimental-session-bundle = [
    "server",
    "dep:aitp-session-bundle",
]
server = [
    "dep:axum",
    "dep:tokio",
]

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

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

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

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

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

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

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

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

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

[dependencies.aitp-core]
version = "0.2.0"

[dependencies.aitp-crypto]
version = "0.2.0"

[dependencies.aitp-envelope]
version = "0.2.0"

[dependencies.aitp-handshake]
version = "0.2.0"

[dependencies.aitp-manifest]
version = "0.2.0"

[dependencies.aitp-session-bundle]
version = "0.2.0"
optional = true

[dependencies.aitp-tct]
version = "0.2.0"

[dependencies.axum]
version = "0.7"
optional = true

[dependencies.chrono]
version = "0.4"
features = [
    "std",
    "serde",
    "clock",
]
default-features = false

[dependencies.jsonwebtoken]
version = "9.2"

[dependencies.parking_lot]
version = "0.12"

[dependencies.rand]
version = "0.8"

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

[dependencies.rustls]
version = "0.23"
features = [
    "std",
    "ring",
]
optional = true
default-features = false

[dependencies.rustls-pki-types]
version = "1.10"
optional = true

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

[dependencies.serde_json]
version = "1.0"
features = ["preserve_order"]

[dependencies.sha2]
version = "0.10"

[dependencies.thiserror]
version = "1.0"

[dependencies.tokio]
version = "1.36"
features = [
    "rt-multi-thread",
    "macros",
]
optional = true

[dependencies.tracing]
version = "0.1"
features = [
    "std",
    "attributes",
]
default-features = false

[dependencies.url]
version = "2.5"
features = ["serde"]

[dependencies.uuid]
version = "1.7"
features = [
    "v4",
    "serde",
]

[dependencies.x509-parser]
version = "0.17"
optional = true

[dev-dependencies.axum]
version = "0.7"

[dev-dependencies.ed25519-dalek]
version = "2.1"
features = ["rand_core"]

[dev-dependencies.reqwest]
version = "0.12"
features = [
    "json",
    "rustls-tls",
]
default-features = false

[dev-dependencies.tokio]
version = "1.36"
features = [
    "rt-multi-thread",
    "macros",
    "macros",
    "rt-multi-thread",
]

[dev-dependencies.tower]
version = "0.5"
features = ["util"]
default-features = false
