[package]
edition = "2021"
rust-version = "1.70"
name = "stream-rs"
version = "0.1.0"
build = false
exclude = [
"/.github",
"/tests/fixtures",
"/fuzz",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Zero-dependency, spec-compliant streaming toolkit for LLM responses (SSE, incremental JSON, OpenAI/Anthropic delta accumulators)."
homepage = "https://github.com/ky2renzzz/stream-rs"
documentation = "https://docs.rs/stream-rs"
readme = "README.md"
keywords = [
"sse",
"streaming",
"llm",
"openai",
"anthropic",
]
categories = [
"parsing",
"asynchronous",
"text-processing",
]
license = "MIT"
repository = "https://github.com/ky2renzzz/stream-rs"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
"--cfg",
"docsrs",
]
[features]
default = ["std"]
std = []
stream = ["dep:futures-core"]
[lib]
name = "stream_rs"
path = "src/lib.rs"
[[example]]
name = "anthropic_stream"
path = "examples/anthropic_stream.rs"
[[example]]
name = "gemini_stream"
path = "examples/gemini_stream.rs"
[[example]]
name = "openai_stream"
path = "examples/openai_stream.rs"
[[test]]
name = "accumulators"
path = "tests/accumulators.rs"
[[test]]
name = "incremental_json"
path = "tests/incremental_json.rs"
[[test]]
name = "sse_spec"
path = "tests/sse_spec.rs"
[[bench]]
name = "streaming"
path = "benches/streaming.rs"
harness = false
[dependencies.futures-core]
version = "0.3"
optional = true
default-features = false
[dev-dependencies.criterion]
version = "0.5"
features = ["cargo_bench_support"]
default-features = false
[dev-dependencies.futures]
version = "0.3"
[lints.clippy]
missing_errors_doc = "allow"
module_name_repetitions = "allow"
must_use_candidate = "allow"
[lints.clippy.all]
level = "warn"
priority = -1
[lints.clippy.pedantic]
level = "warn"
priority = -1
[lints.rust]
missing_docs = "warn"