Cheng XU 9e4da2b6cc Allow using serde feature in no_std environment (#385)
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.
2020-05-22 11:19:46 +09:00
2020-05-22 10:54:52 +09:00
2020-05-22 11:18:20 +09:00
2015-01-30 00:04:33 -08:00
2020-01-23 10:41:50 -08:00
2018-06-18 12:49:34 -07:00
2019-11-27 12:06:33 -08:00

Bytes

A utility library for working with bytes.

Crates.io Build Status

Documentation

Usage

To use bytes, first add this to your Cargo.toml:

[dependencies]
bytes = "0.5"

Next, add this to your crate:

use bytes::{Bytes, BytesMut, Buf, BufMut};

Serde support

Serde support is optional and disabled by default. To enable use the feature serde.

[dependencies]
bytes = { version = "0.5", features = ["serde"] }

License

This project is licensed under the MIT license.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in bytes by you, shall be licensed as MIT, without any additional terms or conditions.

S
Description
工具库用于操作字节
Readme MIT 1.5 MiB
Languages
Rust 99.3%
Shell 0.7%