# 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 = "cebolla"
version = "0.3.0"
authors = ["Zach Shipko <zachshipko@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A convenience layer over Arti for building and connecting to Tor hidden services"
readme = "README.md"
license = "ISC"
repository = "https://codeberg.org/twombly/cebolla"

[features]
default = [
    "http-server",
    "http-client",
]
http-body-util = ["dep:http-body-util"]
http-client = [
    "dep:hyper",
    "dep:hyper-util",
    "dep:rustls",
    "dep:rustls-native-certs",
    "dep:tokio-rustls",
    "dep:http-body-util",
]
http-server = ["dep:poem"]

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

[[bin]]
name = "tor-file-server"
path = "src/bin/tor-file-server.rs"
required-features = ["http-server"]

[[example]]
name = "client"
path = "examples/client.rs"
required-features = ["http-client"]

[[example]]
name = "server"
path = "examples/server.rs"
required-features = ["http-server"]

[dependencies.arti-client]
version = "0.37"
features = [
    "onion-service-client",
    "onion-service-service",
    "rustls",
]

[dependencies.futures-util]
version = "0.3.31"

[dependencies.http-body-util]
version = "0.1.3"
optional = true

[dependencies.hyper]
version = "1.8"
features = [
    "http1",
    "client",
]
optional = true

[dependencies.hyper-util]
version = "0.1"
features = ["tokio"]
optional = true

[dependencies.poem]
version = "3.1.12"
features = ["static-files"]
optional = true

[dependencies.rustls]
version = "0.23.11"
features = ["aws-lc-rs"]
optional = true

[dependencies.rustls-native-certs]
version = "0.7.0"
optional = true

[dependencies.safelog]
version = "0.7.0"

[dependencies.snafu]
version = "0.8.9"

[dependencies.tokio]
version = "1.48.0"
features = ["full"]

[dependencies.tokio-rustls]
version = "0.26.0"
features = [
    "logging",
    "tls12",
    "aws-lc-rs",
]
optional = true
default-features = false

[dependencies.tor-cell]
version = "0.37.0"

[dependencies.tor-dirmgr]
version = "0.37.0"
features = ["static"]

[dependencies.tor-error]
version = "0.37.0"

[dependencies.tor-hsservice]
version = "0.37.0"

[dependencies.tor-proto]
version = "0.37.0"

[dependencies.tor-rtcompat]
version = "0.37.0"

[dependencies.tracing]
version = "0.1.41"
