1[package]
2
3name = "bytes"
4# When releasing to crates.io:
5# - Update CHANGELOG.md.
6# - Create "v1.x.y" git tag.
7version = "1.10.1"
8edition = "2018"
9rust-version = "1.39"
10license = "MIT"
11authors = [
12 "Carl Lerche <me@carllerche.com>",
13 "Sean McArthur <sean@seanmonstar.com>",
14]
15description = "Types and traits for working with bytes"
16repository = "https://github.com/tokio-rs/bytes"
17readme = "README.md"
18keywords = ["buffers", "zero-copy", "io"]
19categories = ["network-programming", "data-structures"]
20
21[features]
22default = ["std"]
23std = []
24
25[dependencies]
26serde = { 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.
31extra-platforms = { package = "portable-atomic", version = "1.3", optional = true, default-features = false, features = ["require-cas"] }
32
33[dev-dependencies]
34serde_test = "1.0"
35
36[target.'cfg(loom)'.dev-dependencies]
37loom = "0.7"
38
39[package.metadata.docs.rs]
40rustdoc-args = ["--cfg", "docsrs"]
41
42[lints.rust]
43unexpected_cfgs = { level = "warn", check-cfg = [
44 'cfg(loom)',
45] }
46