[package]
edition = "2024"
rust-version = "1.85"
name = "bytes-handoff"
version = "1.0.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Incremental async byte ingestion and bounded owned write handoff."
readme = "README.md"
keywords = [
"async",
"bytes",
"tokio",
"buffer",
"handoff",
]
categories = [
"asynchronous",
"network-programming",
]
license = "MIT"
repository = "https://github.com/eden-dev-inc/bytes-handoff"
[features]
bench-tools = [
"hdrhistogram",
"libc",
"tokio/net",
"tokio/rt-multi-thread",
"tokio/time",
]
[lib]
name = "bytes_handoff"
path = "src/lib.rs"
[[bin]]
name = "bench_stream_harness"
path = "src/bin/bench_stream_harness.rs"
required-features = ["bench-tools"]
[[example]]
name = "content_routing"
path = "examples/content_routing.rs"
[[example]]
name = "length_prefix"
path = "examples/length_prefix.rs"
[[example]]
name = "line_protocol"
path = "examples/line_protocol.rs"
[[example]]
name = "write_handoff"
path = "examples/write_handoff.rs"
[[bench]]
name = "read_handoff"
path = "benches/read_handoff.rs"
harness = false
[[bench]]
name = "write_handoff"
path = "benches/write_handoff.rs"
harness = false
[dependencies.bytes]
version = "1.11"
[dependencies.hdrhistogram]
version = "7"
optional = true
[dependencies.libc]
version = "0.2"
optional = true
[dependencies.thiserror]
version = "1"
[dependencies.tokio]
version = "1"
features = [
"io-util",
"rt",
"sync",
]
[dev-dependencies.criterion]
version = "0.5"
[dev-dependencies.memchr]
version = "2"
[dev-dependencies.tokio]
version = "1"
features = [
"io-util",
"macros",
"rt-multi-thread",
"sync",
"test-util",
]
[lints.clippy]
unwrap_used = "deny"