[package]
edition = "2021"
name = "h2ts-client"
version = "0.1.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A from-scratch HTTP/2 client (RFC 7540 + HPACK) for Rust WASM frontends, tunneled over a WebSocket. No hyper, no tokio."
documentation = "https://docs.rs/h2ts-client"
readme = "README.md"
keywords = [
"http2",
"websocket",
"wasm",
"client",
"frontend",
]
categories = [
"network-programming",
"web-programming::http-client",
"wasm",
]
license = "MIT"
repository = "https://github.com/debdattabasu/h2ts"
[features]
default = ["web"]
web = []
[lib]
name = "h2ts_client"
path = "src/lib.rs"
[[test]]
name = "connection"
path = "tests/connection.rs"
[[test]]
name = "frames"
path = "tests/frames.rs"
[[test]]
name = "hpack"
path = "tests/hpack.rs"
[[test]]
name = "pool"
path = "tests/pool.rs"
[dependencies.futures]
version = "0.3"
features = [
"std",
"async-await",
]
default-features = false
[dev-dependencies.futures]
version = "0.3"
features = [
"std",
"async-await",
"executor",
]
[target.'cfg(target_arch = "wasm32")'.dependencies.js-sys]
version = "0.3"
[target.'cfg(target_arch = "wasm32")'.dependencies.wasm-bindgen]
version = "0.2"
[target.'cfg(target_arch = "wasm32")'.dependencies.wasm-bindgen-futures]
version = "0.4"
[target.'cfg(target_arch = "wasm32")'.dependencies.web-sys]
version = "0.3"
features = [
"WebSocket",
"MessageEvent",
"BinaryType",
]