mirror of
https://github.com/ntex-rs/ntex.git
synced 2025-03-31 11:27:38 +03:00
.. | ||
benches | ||
src | ||
tests | ||
Cargo.toml | ||
CHANGELOG.md | ||
LICENSE | ||
README.md |
Bytes
A utility library for working with bytes. This is fork of bytes crate (https://github.com/tokio-rs/bytes)
Usage
To use ntex-bytes
, first add this to your Cargo.toml
:
[dependencies]
ntex-bytes = "0.1"
Next, add this to your crate:
use ntex_bytes::{Bytes, BytesMut, Buf, BufMut};
Serde support
Serde support is optional and disabled by default. To enable use the feature serde
.
[dependencies]
ntex-bytes = { version = "0.1", features = ["serde"] }
License
- Apache License, Version 2.0, (LICENSE-APACHE or [http://www.apache.org/licenses/LICENSE-2.0])
- MIT license (LICENSE-MIT or [http://opensource.org/licenses/MIT])