You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
jianglk.darker
7ee447c011
|
4 months ago | |
---|---|---|
.. | ||
benches | 4 months ago | |
ci | 4 months ago | |
src | 4 months ago | |
tests | 4 months ago | |
.cargo_vcs_info.json | 4 months ago | |
Android.bp | 4 months ago | |
CHANGELOG.md | 4 months ago | |
Cargo.toml | 4 months ago | |
Cargo.toml.orig | 4 months ago | |
LICENSE | 4 months ago | |
METADATA | 4 months ago | |
MODULE_LICENSE_MIT | 4 months ago | |
NOTICE | 4 months ago | |
OWNERS | 4 months ago | |
README.md | 4 months ago | |
cargo2android.json | 4 months ago |
README.md
Bytes
A utility library for working with bytes.
Usage
To use bytes
, first add this to your Cargo.toml
:
[dependencies]
bytes = "1"
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 = "1", 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.