[package]
edition = "2024"
name = "bytesreader"
version = "0.0.1"
authors = ["Yun Peng <pengyun.me@outlook.com>"]
build = false
exclude = [
"/AGENTS.md",
"/.github/",
"/.gitignore",
"/rust-toolchain.toml",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A growable buffered reader backed by the bytes crate"
readme = "README.md"
keywords = [
"io",
"buffer",
"reader",
"bytes",
"zero-copy",
]
categories = ["parsing"]
license = "MIT"
repository = "https://github.com/WangLabCSU/bytesreader"
[features]
hotpath = ["hotpath/hotpath"]
hotpath-alloc = [
"hotpath",
"hotpath/hotpath-alloc",
]
nightly = []
[lib]
name = "bytesreader"
path = "src/lib.rs"
[[example]]
name = "profile"
path = "examples/profile.rs"
[[bench]]
name = "methods"
path = "benches/methods.rs"
harness = false
[[bench]]
name = "reading"
path = "benches/reading.rs"
harness = false
[dependencies.bytes]
version = "1.12.*"
[dependencies.hotpath]
version = "0.30.*"
[dev-dependencies.memchr]
version = "2.8"
[profile.profiling]
debug = 2
inherits = "release"
strip = false
[profile.release]
lto = true
codegen-units = 1
strip = "debuginfo"