ugi 0.2.1

Runtime-agnostic Rust request client with HTTP/1.1, HTTP/2, HTTP/3, H2C, WebSocket, SSE, and gRPC support
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 = "ugi"
version = "0.2.1"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Runtime-agnostic Rust request client with HTTP/1.1, HTTP/2, HTTP/3, H2C, WebSocket, SSE, and gRPC support"
documentation = "https://docs.rs/ugi"
readme = "README.md"
keywords = [
    "http",
    "client",
    "request",
    "grpc",
    "websocket",
]
categories = [
    "network-programming",
    "web-programming::http-client",
    "api-bindings",
]
license = "MIT OR Apache-2.0"

[features]
boring-backend = ["btls-backend"]
brotli = ["dep:brotli"]
btls-backend = ["dep:btls"]
default = [
    "rustls",
    "h2",
    "brotli",
    "zstd",
]
emulation = [
    "btls-backend",
    "h2",
    "brotli",
]
h2 = ["dep:hpack"]
h3 = [
    "dep:quiche",
    "quiche/boringssl-vendored",
]
native-tls = ["dep:async-native-tls"]
rustls = [
    "dep:async-tls",
    "dep:rustls",
    "dep:webpki-roots",
]
zstd = ["dep:zstd"]

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[[bench]]
name = "h3_compare"
path = "benches/h3_compare.rs"
harness = false
required-features = []

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

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

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

[dependencies.async-channel]
version = "2"

[dependencies.async-fs]
version = "2.2.0"

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

[dependencies.async-lock]
version = "3.4.2"

[dependencies.async-native-tls]
version = "0.6"
optional = true

[dependencies.async-net]
version = "2"

[dependencies.async-stream]
version = "0.3"

[dependencies.async-tls]
version = "0.13"
optional = true

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

[dependencies.brotli]
version = "8"
optional = true

[dependencies.btls]
version = "0.5.4"
optional = true

[dependencies.bytes]
version = "1"

[dependencies.flate2]
version = "1"

[dependencies.futures-lite]
version = "2"

[dependencies.hpack]
version = "0.3"
optional = true

[dependencies.httpdate]
version = "1"

[dependencies.md5]
version = "0.8.0"

[dependencies.quiche]
version = "0.26.1"
optional = true
default-features = false

[dependencies.rustls]
version = "0.21"
features = ["dangerous_configuration"]
optional = true

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

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

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

[dependencies.serde_json]
version = "1"

[dependencies.sha1]
version = "0.10"

[dependencies.sha2]
version = "0.10"

[dependencies.socket2]
version = "0.5"

[dependencies.webpki-roots]
version = "0.22"
optional = true

[dependencies.zstd]
version = "0.13"
optional = true

[dev-dependencies.futures-util]
version = "0.3"

[dev-dependencies.graphql_client]
version = "0.14"

[dev-dependencies.h2]
version = "0.4"

[dev-dependencies.http]
version = "1"

[dev-dependencies.httpmock]
version = "0.7"

[dev-dependencies.rcgen]
version = "0.14"

[dev-dependencies.reqwest]
version = "0.12"
features = [
    "http2",
    "rustls-tls",
]
default-features = false

[dev-dependencies.reqwest-h3]
version = "0.13"
default-features = false

[dev-dependencies.smol]
version = "2"

[dev-dependencies.smol-potat]
version = "1.1.2"

[dev-dependencies.tempfile]
version = "3"

[dev-dependencies.tokio]
version = "1"
features = [
    "macros",
    "rt-multi-thread",
]

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

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