sse-core 0.2.0

A high-performance, zero-I/O, no_std compatible state-machine parser for Server-Sent Events (SSE).
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 = "2021"
rust-version = "1.79.0"
name = "sse-core"
version = "0.2.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A high-performance, zero-I/O, no_std compatible state-machine parser for Server-Sent Events (SSE)."
readme = "README.md"
keywords = [
    "eventsource",
    "no_std",
    "parser",
    "server-sent-events",
    "sse",
]
categories = [
    "network-programming",
    "no-std",
    "parsing",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/PizzasBear/sse-rs"

[package.metadata.docs.rs]
all-features = true

[features]
default = [
    "fastrand",
    "std",
    "stream",
]
fastrand = [
    "dep:fastrand",
    "std",
]
std = [
    "memchr/std",
    "thiserror/std",
]
stream = [
    "dep:futures-core",
    "dep:pin-project-lite",
]

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

[[bench]]
name = "bench"
path = "benches/bench.rs"
harness = false

[dependencies.bytes]
version = "1.11"
default-features = false

[dependencies.fastrand]
version = "2.4"
optional = true

[dependencies.futures-core]
version = "0.3"
optional = true
default-features = false

[dependencies.memchr]
version = "2.8"
features = ["alloc"]
default-features = false

[dependencies.pin-project-lite]
version = "0.2"
optional = true

[dependencies.serde]
version = "1.0"
features = [
    "alloc",
    "derive",
    "rc",
]
optional = true
default-features = false

[dependencies.thiserror]
version = "2.0"
default-features = false

[dev-dependencies.criterion]
version = "0.8.2"
features = ["async_tokio"]

[dev-dependencies.eventsource-stream]
version = "0.2.3"

[dev-dependencies.tokio]
version = "1.52.1"
features = [
    "macros",
    "rt",
]

[dev-dependencies.tokio-stream]
version = "0.1.18"

[dev-dependencies.tokio-test]
version = "0.4.5"