[package]
edition = "2021"
name = "sse-stream"
version = "0.2.3"
authors = ["4t145 <u4t145@163.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Conversion between http body and sse stream"
documentation = "https://docs.rs/sse-stream/sse-stream"
readme = "README.md"
keywords = [
"sse",
"http",
"http-client",
]
categories = [
"network-programming",
"asynchronous",
]
license = "MIT/Apache-2.0"
repository = "https://github.com/4t145/sse-stream/"
[features]
default = []
tracing = ["dep:tracing"]
[lib]
name = "sse_stream"
path = "src/lib.rs"
[[test]]
name = "test_bytes_parse"
path = "tests/test_bytes_parse.rs"
[[test]]
name = "test_encode_body"
path = "tests/test_encode_body.rs"
[[test]]
name = "test_with_hyper"
path = "tests/test_with_hyper.rs"
[[test]]
name = "test_with_reqwest"
path = "tests/test_with_reqwest.rs"
[dependencies.bytes]
version = "1"
[dependencies.futures-util]
version = "0.3"
[dependencies.http-body]
version = "1"
[dependencies.http-body-util]
version = "0.1"
[dependencies.pin-project-lite]
version = "0.2"
[dependencies.tracing]
version = "0.1"
optional = true
[dev-dependencies.anyhow]
version = "1"
[dev-dependencies.axum]
version = "0.8"
features = ["tracing"]
[dev-dependencies.hyper]
version = "1"
features = [
"client",
"http1",
]
[dev-dependencies.hyper-util]
version = "0.1"
features = ["tokio"]
[dev-dependencies.reqwest]
version = "0.12"
features = ["stream"]
[dev-dependencies.serde]
version = "1"
features = ["derive"]
[dev-dependencies.tokio]
version = "1"
features = ["full"]
[dev-dependencies.tokio-util]
version = "0.7"
features = ["io"]
[dev-dependencies.tracing]
version = "0.1"
[dev-dependencies.tracing-subscriber]
version = "0.3"
features = [
"env-filter",
"std",
"fmt",
]