eventsrc-client 0.0.2

One-shot and replayable SSE / EventSource client for Rust.
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
rust-version = "1.85.0"
name = "eventsrc-client"
version = "0.0.2"
authors = ["Qinxuan Chen <https://github.com/koushiro>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "One-shot and replayable SSE / EventSource client for Rust."
homepage = "https://github.com/koushiro/eventsrc"
documentation = "https://docs.rs/eventsrc-client"
readme = false
keywords = [
    "sse",
    "eventsource",
    "stream",
    "client",
]
license = "Apache-2.0"
repository = "https://github.com/koushiro/eventsrc"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[features]
default = ["reqwest"]
reqwest = ["dep:reqwest"]

[lib]
name = "eventsrc_client"
path = "src/lib.rs"

[[test]]
name = "oneshot"
path = "tests/oneshot.rs"

[[test]]
name = "replayable"
path = "tests/replayable.rs"

[dependencies.anyhow]
version = "1"

[dependencies.backon]
version = "1"
features = [
    "std",
    "tokio-sleep",
]
default-features = false

[dependencies.bytes]
version = "1"

[dependencies.eventsrc]
version = "0.0.2"

[dependencies.futures-core]
version = "0.3"

[dependencies.reqwest]
version = "0.13"
features = ["stream"]
optional = true

[dependencies.tokio]
version = "1"
features = ["time"]

[dev-dependencies.futures-util]
version = "0.3"

[dev-dependencies.http]
version = "1"

[dev-dependencies.tokio]
version = "1"
features = [
    "macros",
    "rt-multi-thread",
    "test-util",
    "time",
]