# 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"
name = "ttsync-http"
version = "2.0.3"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "HTTP server and client adapter for TT-Sync v2 protocol"
readme = false
license = "MIT"
repository = "https://github.com/Darkatse/TT-Sync"
resolver = "2"

[features]
client = [
    "dep:reqwest",
    "dep:serde_json",
    "dep:url",
    "dep:webpki-roots",
]
default = [
    "client",
    "server",
]
server = [
    "dep:axum",
    "dep:axum-server",
    "dep:async-compression",
    "dep:futures-util",
    "dep:rcgen",
    "dep:rustls-pemfile",
    "dep:serde",
    "dep:serde_json",
    "dep:tokio",
    "dep:tokio-util",
    "dep:tracing",
    "dep:uuid",
]

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

[dependencies.async-compression]
version = "0.4"
features = [
    "tokio",
    "zstd",
]
optional = true

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

[dependencies.axum-server]
version = "0.8"
features = ["tls-rustls"]
optional = true

[dependencies.base64]
version = "0.22"

[dependencies.futures-util]
version = "0.3"
optional = true

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

[dependencies.reqwest]
version = "0.13"
features = [
    "rustls",
    "http2",
    "json",
    "stream",
]
optional = true
default-features = false

[dependencies.rustls]
version = "0.23"

[dependencies.rustls-pemfile]
version = "2"
optional = true

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

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

[dependencies.sha2]
version = "0.10"

[dependencies.tokio]
version = "1"
features = ["full"]
optional = true

[dependencies.tokio-util]
version = "0.7"
features = ["io"]
optional = true

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

[dependencies.ttsync-contract]
version = "2.0.3"

[dependencies.ttsync-core]
version = "2.0.3"

[dependencies.url]
version = "2"
optional = true

[dependencies.uuid]
version = "1"
features = ["v4"]
optional = true

[dependencies.webpki-roots]
version = "1"
optional = true

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