mirror of
https://github.com/tokio-rs/bytes.git
synced 2026-08-11 00:00:23 +02:00
Bytes is a useful tool for managing multiple slices into the same region of memory, and the other things it used to have been removed to reduce complexity. The exact strategy for managing the multiple references is no longer hard-coded, but instead backing by a customizable vtable. - Removed ability to mutate the underlying memory from the `Bytes` type. - Removed the "inline" (SBO) mechanism in `Bytes`. The reduces a large amount of complexity, and improves performance when accessing the slice of bytes, since a branch is no longer needed to check if the data is inline. - Removed `Bytes` knowledge of `BytesMut` (`BytesMut` may grow that knowledge back at a future point.)
33 lines
806 B
TOML
33 lines
806 B
TOML
[package]
|
|
|
|
name = "bytes"
|
|
# When releasing to crates.io:
|
|
# - Update html_root_url.
|
|
# - Update CHANGELOG.md.
|
|
# - Update doc URL.
|
|
# - Create "v0.4.x" git tag.
|
|
version = "0.5.0"
|
|
license = "MIT"
|
|
authors = ["Carl Lerche <[email protected]>"]
|
|
description = "Types and traits for working with bytes"
|
|
documentation = "https://docs.rs/bytes"
|
|
repository = "https://github.com/tokio-rs/bytes"
|
|
readme = "README.md"
|
|
keywords = ["buffers", "zero-copy", "io"]
|
|
categories = ["network-programming", "data-structures"]
|
|
edition = "2018"
|
|
|
|
publish = false
|
|
|
|
[features]
|
|
default = ["std"]
|
|
std = []
|
|
|
|
[dependencies]
|
|
serde = { version = "1.0", optional = true }
|
|
either = { version = "1.5", default-features = false, optional = true }
|
|
|
|
[dev-dependencies]
|
|
loom = "0.2.10"
|
|
serde_test = "1.0"
|