| 1 |
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO |
| 2 |
# |
| 3 |
# When uploading crates to the registry Cargo will automatically |
| 4 |
# "normalize" Cargo.toml files for maximal compatibility |
| 5 |
# with all versions of Cargo and also rewrite `path` dependencies |
| 6 |
# to registry (e.g., crates.io) dependencies. |
| 7 |
# |
| 8 |
# If you are reading this file be aware that the original Cargo.toml |
| 9 |
# will likely look very different (and much more reasonable). |
| 10 |
# See Cargo.toml.orig for the original contents. |
| 11 |
|
| 12 |
[package] |
| 13 |
edition = "2021" |
| 14 |
rust-version = "1.57" |
| 15 |
name = "bytes" |
| 16 |
version = "1.11.1" |
| 17 |
authors = [ |
| 18 |
"Carl Lerche <[email protected]>", |
| 19 |
"Sean McArthur <[email protected]>", |
| 20 |
] |
| 21 |
build = false |
| 22 |
autolib = false |
| 23 |
autobins = false |
| 24 |
autoexamples = false |
| 25 |
autotests = false |
| 26 |
autobenches = false |
| 27 |
description = "Types and traits for working with bytes" |
| 28 |
readme = "README.md" |
| 29 |
keywords = [ |
| 30 |
"buffers", |
| 31 |
"zero-copy", |
| 32 |
"io", |
| 33 |
] |
| 34 |
categories = [ |
| 35 |
"network-programming", |
| 36 |
"data-structures", |
| 37 |
] |
| 38 |
license = "MIT" |
| 39 |
repository = "https://github.com/tokio-rs/bytes" |
| 40 |
|
| 41 |
[package.metadata.docs.rs] |
| 42 |
rustdoc-args = [ |
| 43 |
"--cfg", |
| 44 |
"docsrs", |
| 45 |
] |
| 46 |
|
| 47 |
[features] |
| 48 |
default = ["std"] |
| 49 |
std = [] |
| 50 |
|
| 51 |
[lib] |
| 52 |
name = "bytes" |
| 53 |
path = "src/lib.rs" |
| 54 |
|
| 55 |
[[test]] |
| 56 |
name = "test_buf" |
| 57 |
path = "tests/test_buf.rs" |
| 58 |
|
| 59 |
[[test]] |
| 60 |
name = "test_buf_mut" |
| 61 |
path = "tests/test_buf_mut.rs" |
| 62 |
|
| 63 |
[[test]] |
| 64 |
name = "test_bytes" |
| 65 |
path = "tests/test_bytes.rs" |
| 66 |
|
| 67 |
[[test]] |
| 68 |
name = "test_bytes_odd_alloc" |
| 69 |
path = "tests/test_bytes_odd_alloc.rs" |
| 70 |
|
| 71 |
[[test]] |
| 72 |
name = "test_bytes_vec_alloc" |
| 73 |
path = "tests/test_bytes_vec_alloc.rs" |
| 74 |
|
| 75 |
[[test]] |
| 76 |
name = "test_chain" |
| 77 |
path = "tests/test_chain.rs" |
| 78 |
|
| 79 |
[[test]] |
| 80 |
name = "test_debug" |
| 81 |
path = "tests/test_debug.rs" |
| 82 |
|
| 83 |
[[test]] |
| 84 |
name = "test_iter" |
| 85 |
path = "tests/test_iter.rs" |
| 86 |
|
| 87 |
[[test]] |
| 88 |
name = "test_limit" |
| 89 |
path = "tests/test_limit.rs" |
| 90 |
|
| 91 |
[[test]] |
| 92 |
name = "test_reader" |
| 93 |
path = "tests/test_reader.rs" |
| 94 |
|
| 95 |
[[test]] |
| 96 |
name = "test_serde" |
| 97 |
path = "tests/test_serde.rs" |
| 98 |
|
| 99 |
[[test]] |
| 100 |
name = "test_take" |
| 101 |
path = "tests/test_take.rs" |
| 102 |
|
| 103 |
[[bench]] |
| 104 |
name = "buf" |
| 105 |
path = "benches/buf.rs" |
| 106 |
|
| 107 |
[[bench]] |
| 108 |
name = "bytes" |
| 109 |
path = "benches/bytes.rs" |
| 110 |
|
| 111 |
[[bench]] |
| 112 |
name = "bytes_mut" |
| 113 |
path = "benches/bytes_mut.rs" |
| 114 |
|
| 115 |
[dependencies.extra-platforms] |
| 116 |
version = "1.3" |
| 117 |
features = ["require-cas"] |
| 118 |
optional = true |
| 119 |
default-features = false |
| 120 |
package = "portable-atomic" |
| 121 |
|
| 122 |
[dependencies.serde] |
| 123 |
version = "1.0.60" |
| 124 |
features = ["alloc"] |
| 125 |
optional = true |
| 126 |
default-features = false |
| 127 |
|
| 128 |
[dev-dependencies.serde_test] |
| 129 |
version = "1.0" |
| 130 |
|
| 131 |
[target."cfg(loom)".dev-dependencies.loom] |
| 132 |
version = "0.7" |
| 133 |
|
| 134 |
[lints.rust.unexpected_cfgs] |
| 135 |
level = "warn" |
| 136 |
priority = 0 |
| 137 |
check-cfg = ["cfg(loom)"] |