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