[package]
edition = "2024"
rust-version = "1.85"
name = "winhttp"
version = "0.1.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Safe, ergonomic Rust bindings for the Windows WinHTTP API"
homepage = "https://github.com/stevefan1999-personal/winhttp"
readme = "README.md"
license = "MIT"
repository = "https://github.com/stevefan1999-personal/winhttp"
[features]
async = [
"crossfire",
"parking_lot",
"futures-core",
]
default = []
json = [
"serde",
"serde_json",
]
websocket = []
[lib]
name = "winhttp"
path = "src/lib.rs"
[[example]]
name = "async_get"
path = "examples/async_get.rs"
required-features = ["async"]
[[example]]
name = "async_json"
path = "examples/async_json.rs"
required-features = [
"async",
"json",
]
[[example]]
name = "client_helpers"
path = "examples/client_helpers.rs"
required-features = ["async"]
[[example]]
name = "features"
path = "examples/features.rs"
[[example]]
name = "websocket"
path = "examples/websocket.rs"
required-features = ["websocket"]
[[test]]
name = "async_tests"
path = "tests/async_tests.rs"
[[test]]
name = "client_tests"
path = "tests/client_tests.rs"
[[test]]
name = "compile_fail_tests"
path = "tests/compile_fail_tests.rs"
[[test]]
name = "feature_tests"
path = "tests/feature_tests.rs"
[[test]]
name = "http_integration_tests"
path = "tests/http_integration_tests.rs"
[[test]]
name = "integration_tests"
path = "tests/integration_tests.rs"
[[test]]
name = "typed_api_tests"
path = "tests/typed_api_tests.rs"
[[test]]
name = "websocket_integration_tests"
path = "tests/websocket_integration_tests.rs"
[dependencies.crossfire]
version = "3"
optional = true
[dependencies.futures-core]
version = "0.3"
optional = true
[dependencies.parking_lot]
version = "0.12"
optional = true
[dependencies.serde]
version = "1"
optional = true
[dependencies.serde_json]
version = "1"
optional = true
[dependencies.windows]
version = "0.62"
features = [
"Win32",
"Win32_Networking_WinHttp",
"Win32_Foundation",
"Win32_Networking_WinSock",
]
[dev-dependencies.pollster]
version = "0.4"
[dev-dependencies.serde]
version = "1"
features = ["derive"]
[dev-dependencies.serde_json]
version = "1"
[dev-dependencies.smol]
version = "2"
[dev-dependencies.tokio]
version = "1"
features = [
"rt",
"rt-multi-thread",
"macros",
]
[profile.release]
opt-level = "s"
lto = true
codegen-units = 1
strip = true