mirror of
https://github.com/openharmony/third_party_rust_bytes.git
synced 2026-07-19 17:05:29 -04:00
9e4da2b6cc
When `serde` is used, it would enable its default feature `std`. This of course breaks no_std build. Fix this by disabling serde's default features. This should work for both serde + std and serde + no_std case.
37 lines
927 B
TOML
37 lines
927 B
TOML
[package]
|
|
|
|
name = "bytes"
|
|
# When releasing to crates.io:
|
|
# - Update html_root_url.
|
|
# - Update CHANGELOG.md.
|
|
# - Update doc URL.
|
|
# - Create "v0.5.x" git tag.
|
|
version = "0.5.4"
|
|
license = "MIT"
|
|
authors = [
|
|
"Carl Lerche <me@carllerche.com>",
|
|
"Sean McArthur <sean@seanmonstar.com>",
|
|
]
|
|
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"
|
|
|
|
[features]
|
|
default = ["std"]
|
|
std = []
|
|
|
|
[dependencies]
|
|
serde = { version = "1.0", optional = true, default-features = false, features = ["alloc"] }
|
|
|
|
[dev-dependencies]
|
|
serde_test = "1.0"
|
|
|
|
# loom is currently not compiling on windows.
|
|
# See: https://github.com/Xudong-Huang/generator-rs/issues/19
|
|
[target.'cfg(not(windows))'.dev-dependencies]
|
|
loom = "0.2.13"
|