[package] name = "hyper-util" version = "0.1.20" description = "hyper utilities" readme = "README.md" homepage = "https://hyper.rs" documentation = "https://docs.rs/hyper-util" repository = "https://github.com/hyperium/hyper-util" license = "MIT" authors = ["Sean McArthur "] keywords = ["http", "hyper", "hyperium"] categories = ["network-programming", "web-programming::http-client", "web-programming::http-server"] edition = "2021" rust-version = "1.64" [package.metadata.docs.rs] features = ["full"] rustdoc-args = ["--cfg", "docsrs"] [dependencies] base64 = { version = "0.22", optional = true } bytes = "1.7.1" futures-channel = { version = "0.3", optional = true } futures-util = { version = "0.3.16", default-features = false, optional = true } http = "1.0" http-body = "1.0.0" hyper = "1.8.0" ipnet = { version = "2.9", optional = true } libc = { version = "0.2", optional = true } percent-encoding = { version = "2.3", optional = true } pin-project-lite = "0.2.4" socket2 = { version = ">=0.5.9, <0.7", optional = true, features = ["all"] } tracing = { version = "0.1", default-features = false, features = ["std"], optional = true } tokio = { version = "1", optional = true, default-features = false } tower-layer = { version = "0.3", optional = true } tower-service = { version = "0.3", optional = true } [dev-dependencies] hyper = { version = "1.4.0", features = ["full"] } bytes = "1" futures-util = { version = "0.3.16", default-features = false, features = ["alloc"] } http-body-util = "0.1.0" tokio = { version = "1", features = ["macros", "test-util", "signal"] } tokio-test = "0.4" tower-test = "0.4" pretty_env_logger = "0.5" [target.'cfg(any(target_os = "linux", target_os = "macos"))'.dev-dependencies] pnet_datalink = "0.35.0" [target.'cfg(target_os = "macos")'.dependencies] system-configuration = { version = "0.7", optional = true } [target.'cfg(windows)'.dependencies] windows-registry = { version = ">=0.3, <0.7", optional = true } [features] default = [] # Shorthand to enable everything full = [ "client", "client-legacy", "client-pool", "client-proxy", "client-proxy-system", "server", "server-auto", "server-graceful", "service", "http1", "http2", "tokio", "tracing", ] client = ["hyper/client", "tokio/net", "dep:tracing", "dep:futures-channel", "dep:tower-service"] client-legacy = ["client", "dep:socket2", "tokio/sync", "dep:libc", "dep:futures-util"] client-pool = ["client", "dep:futures-util", "dep:tower-layer"] client-proxy = ["client", "dep:base64", "dep:ipnet", "dep:percent-encoding"] client-proxy-system = ["dep:system-configuration", "dep:windows-registry"] server = ["hyper/server"] server-auto = ["server", "http1", "http2"] server-graceful = ["server", "tokio/sync"] service = ["dep:tower-service"] http1 = ["hyper/http1"] http2 = ["hyper/http2"] tokio = ["dep:tokio", "tokio/rt", "tokio/time"] tracing = ["dep:tracing"] # internal features used in CI __internal_happy_eyeballs_tests = [] [[example]] name = "client" required-features = ["client-legacy", "http1", "tokio"] [[example]] name = "server" required-features = ["server", "http1", "tokio"] [[example]] name = "server_graceful" required-features = ["tokio", "server-graceful", "server-auto"]