serverkit-hyper 0.4.0

Hyper HTTP/1 and HTTP/2 adapter for ServerKit
Documentation
# 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 = "serverkit-hyper"
version = "0.4.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Hyper HTTP/1 and HTTP/2 adapter for ServerKit"
readme = false
license = "MIT"
repository = "https://github.com/Pribess/ServerKit"

[features]
default = []
std = [
    "dep:async-io",
    "dep:hyper",
    "hyper/http1",
]
tokio = [
    "dep:hyper",
    "hyper/http1",
    "hyper/http2",
    "dep:hyper-util",
    "dep:tokio",
]
websocket = [
    "tokio",
    "serverkit/websocket",
    "dep:futures-util",
    "dep:tokio-tungstenite",
]

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

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

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

[dependencies.async-io]
version = "2"
optional = true

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

[dependencies.hyper]
version = "1"
features = ["server"]
optional = true

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

[dependencies.serverkit]
version = "0.4.0"

[dependencies.tokio]
version = "1"
features = [
    "net",
    "rt",
]
optional = true

[dependencies.tokio-tungstenite]
version = "0.29"
optional = true

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

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

[dev-dependencies.tokio]
version = "1"
features = [
    "io-util",
    "net",
    "rt",
]