# 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 = "ngrok"
version = "0.19.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "The ngrok agent SDK"
readme = "README.md"
license = "MIT OR Apache-2.0"
repository = "https://github.com/ngrok/ngrok-rust"
resolver = "2"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[features]
authenticated-tests = ["online-tests"]
aws-lc-rs = ["futures-rustls/aws-lc-rs"]
axum = [
    "dep:axum",
    "hyper",
]
default = ["aws-lc-rs"]
hyper = [
    "hyper/server",
    "hyper/http1",
    "dep:hyper",
]
long-tests = ["online-tests"]
online-tests = [
    "axum",
    "hyper",
]
paid-tests = ["authenticated-tests"]
ring = ["futures-rustls/ring"]

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

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

[[example]]
name = "connect"
path = "examples/connect.rs"

[[example]]
name = "labeled"
path = "examples/labeled.rs"
required-features = ["axum"]

[[example]]
name = "mingrok"
path = "examples/mingrok.rs"
required-features = ["hyper"]

[[example]]
name = "tls"
path = "examples/tls.rs"
required-features = ["axum"]

[dependencies.arc-swap]
version = "1.5.2"

[dependencies.async-trait]
version = "0.1.59"

[dependencies.awaitdrop]
version = "0.1.1"

[dependencies.axum]
version = "0.7.4"
features = ["tokio"]
optional = true

[dependencies.axum-core]
version = "0.4.3"

[dependencies.base64]
version = "0.21.7"

[dependencies.bitflags]
version = "2.4.2"

[dependencies.bytes]
version = "1.10.1"

[dependencies.futures]
version = "0.3.25"

[dependencies.futures-rustls]
version = "0.26.0"
features = [
    "tls12",
    "logging",
]
default-features = false

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

[dependencies.hostname]
version = "0.3.1"

[dependencies.hyper]
version = "^1.1.0"
optional = true

[dependencies.hyper-http-proxy]
version = "1.1.0"

[dependencies.hyper-util]
version = "0.1.3"
features = ["tokio"]

[dependencies.muxado]
version = "0.5"

[dependencies.once_cell]
version = "1.17.1"

[dependencies.parking_lot]
version = "0.12.1"

[dependencies.pin-project]
version = "1.1.3"

[dependencies.proxy-protocol]
version = "0.5.0"

[dependencies.regex]
version = "1.7.3"

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

[dependencies.rustls-pemfile]
version = "2.0.0"

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

[dependencies.serde_json]
version = "1.0.89"

[dependencies.thiserror]
version = "2"

[dependencies.tokio]
version = "1.23.0"
features = [
    "io-util",
    "net",
    "sync",
    "time",
    "rt",
]

[dependencies.tokio-retry]
version = "0.3.2"

[dependencies.tokio-socks]
version = "0.5.1"

[dependencies.tokio-util]
version = "0.7.4"
features = ["compat"]

[dependencies.tower-service]
version = "0.3.3"

[dependencies.tracing]
version = "0.1.37"

[dependencies.url]
version = "2.4.0"

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

[dev-dependencies.axum]
version = "0.7.4"
features = ["tokio"]

[dev-dependencies.flate2]
version = "1.0.25"

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

[dev-dependencies.hyper]
version = "1.1.0"
features = ["client"]

[dev-dependencies.hyper-util]
version = "0.1.3"
features = [
    "tokio",
    "server",
    "http1",
    "http2",
]

[dev-dependencies.paste]
version = "1.0.11"

[dev-dependencies.rand]
version = "0.8.5"

[dev-dependencies.reqwest]
version = "0.12"

[dev-dependencies.tokio]
version = "1.23.0"
features = ["full"]

[dev-dependencies.tokio-tungstenite]
version = "0.26.2"
features = [
    "rustls",
    "rustls-tls-webpki-roots",
]

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

[dev-dependencies.tracing-subscriber]
version = "0.3.16"
features = ["env-filter"]

[dev-dependencies.tracing-test]
version = "0.2.3"

[target."cfg(windows)".dependencies.windows-sys]
version = "0.45.0"
features = ["Win32_Foundation"]
