[package]
name = "http-json-stream"
description = "An asynchronous JSON streamer for HTTP network requests"
version = "0.1.1"
edition = "2021"
license = "MIT OR Apache-2.0"
repository = "https://github.com/LMOORS30/http-json-stream"
authors = ["Lander Moors <lander.moors@decathlon.com>"]
keywords = ["gzip", "http", "json", "serde"]
categories = ["asynchronous", "encoding", "web-programming::http-client"]
[features]
gzip = ["flate2-rust_backend"]
flate2-cloudflare_zlib = ["flate2/cloudflare_zlib"]
flate2-rust_backend = ["flate2/rust_backend"]
flate2-zlib = ["flate2/zlib"]
flate2-zlib-default = ["flate2/zlib-default"]
flate2-zlib-ng = ["flate2/zlib-ng"]
flate2-zlib-ng-compat = ["flate2/zlib-ng-compat"]
flate2-zlib-rs = ["flate2/zlib-rs"]
[dependencies]
bytes = { version = "1.10", default-features = false }
flate2 = { version = "1.1", default-features = false, optional = true }
futures-core = { version = "0.3", default-features = false }
http = { version = "1.3", default-features = false }
http-body = { version = "1.0", default-features = false }
serde = { version = "1.0", default-features = false }
serde_json = { version = "1.0", default-features = false, features = ["std"] }
[dev-dependencies]
futures-util = "0.3"
reqwest = "0.12.23"
serde = { version = "1.0", features = ["derive"] }
tokio = { version = "1.47.1", features = ["full"] }
[[example]]
name = "cities"
[[example]]
name = "cities-gzip"
required-features = ["gzip"]
[package.metadata.docs.rs]
features = ["gzip"]
targets = ["x86_64-unknown-linux-gnu"]