| 1 |
[package] |
| 2 |
|
| 3 |
name = "bytes" |
| 4 |
# When releasing to crates.io: |
| 5 |
# - Update CHANGELOG.md. |
| 6 |
# - Create "v1.x.y" git tag. |
| 7 |
version = "1.11.1" |
| 8 |
edition = "2021" |
| 9 |
rust-version = "1.57" |
| 10 |
license = "MIT" |
| 11 |
authors = [ |
| 12 |
"Carl Lerche <[email protected]>", |
| 13 |
"Sean McArthur <[email protected]>", |
| 14 |
] |
| 15 |
description = "Types and traits for working with bytes" |
| 16 |
repository = "https://github.com/tokio-rs/bytes" |
| 17 |
readme = "README.md" |
| 18 |
keywords = ["buffers", "zero-copy", "io"] |
| 19 |
categories = ["network-programming", "data-structures"] |
| 20 |
|
| 21 |
[features] |
| 22 |
default = ["std"] |
| 23 |
std = [] |
| 24 |
|
| 25 |
[dependencies] |
| 26 |
serde = { version = "1.0.60", optional = true, default-features = false, features = ["alloc"] } |
| 27 |
# Use portable-atomic crate to support platforms without atomic CAS. |
| 28 |
# See "no_std support" section in readme for more information. |
| 29 |
# |
| 30 |
# Enable require-cas feature to provide a better error message if the end user forgets to use the cfg or feature. |
| 31 |
extra-platforms = { package = "portable-atomic", version = "1.3", optional = true, default-features = false, features = ["require-cas"] } |
| 32 |
|
| 33 |
[dev-dependencies] |
| 34 |
serde_test = "1.0" |
| 35 |
|
| 36 |
[target.'cfg(loom)'.dev-dependencies] |
| 37 |
loom = "0.7" |
| 38 |
|
| 39 |
[package.metadata.docs.rs] |
| 40 |
rustdoc-args = ["--cfg", "docsrs"] |
| 41 |
|
| 42 |
[lints.rust] |
| 43 |
unexpected_cfgs = { level = "warn", check-cfg = [ |
| 44 |
'cfg(loom)', |
| 45 |
] } |