# 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 = "hpx-fastwebsockets"
version = "2.0.0"
authors = ["Divy Srivastava <dj.srivastava23@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A fast RFC6455 WebSocket server implementation"
readme = "README.md"
license = "Apache-2.0"
repository = "https://github.com/longcipher/hpx"

[package.metadata.docs.rs]
features = [
    "upgrade",
    "with_axum",
]

[package.metadata.cargo-machete]
ignored = [
    "async-trait",
    "utf-8",
]

[features]
default = [
    "simd",
    "upgrade",
]
simd = ["simdutf8"]
unstable-split = []
upgrade = [
    "hyper",
    "pin-project",
    "base64",
    "sha1",
    "hyper-util",
    "http-body-util",
]
with_axum = [
    "axum-core",
    "http",
    "async-trait",
]

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

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

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

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

[[example]]
name = "echo_server_split"
path = "examples/echo_server_split.rs"
required-features = [
    "upgrade",
    "unstable-split",
]

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

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

[[test]]
name = "concurrency"
path = "tests/concurrency.rs"
required-features = ["upgrade"]

[[test]]
name = "split"
path = "tests/split.rs"
required-features = [
    "upgrade",
    "unstable-split",
]

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

[[test]]
name = "upgrade"
path = "tests/upgrade.rs"
required-features = ["upgrade"]

[[bench]]
name = "unmask"
path = "benches/unmask.rs"
harness = false

[dependencies.async-trait]
version = "0.1.80"
optional = true

[dependencies.axum-core]
version = "0.5.6"
optional = true

[dependencies.base64]
version = "0.22.1"
optional = true

[dependencies.bytes]
version = "1.11.1"

[dependencies.http]
version = "1.4.0"
optional = true

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

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

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

[dependencies.pin-project]
version = "1.1.10"
optional = true

[dependencies.rand]
version = "0.10.0"

[dependencies.sha1]
version = "0.10.6"
optional = true

[dependencies.simdutf8]
version = "0.1.5"
optional = true

[dependencies.thiserror]
version = "2.0.18"

[dependencies.tokio]
version = "1.49.0"
features = ["io-util"]

[dependencies.utf-8]
version = "0.7.6"

[dev-dependencies.assert2]
version = "0.4.0"

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

[dev-dependencies.bytes]
version = "1.11.1"

[dev-dependencies.criterion]
version = "0.8.2"

[dev-dependencies.eyre]
version = "0.6.12"

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

[dev-dependencies.hyper]
version = "1.8.1"
features = [
    "http1",
    "server",
    "client",
]

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

[dev-dependencies.rustls-pemfile]
version = "2.2.0"

[dev-dependencies.tokio]
version = "1.49.0"
features = [
    "full",
    "macros",
]

[dev-dependencies.tokio-rustls]
version = "0.26"

[dev-dependencies.trybuild]
version = "1.0.116"

[dev-dependencies.webpki-roots]
version = "1.0.6"
