Crates.io | ntex-bytes |
lib.rs | ntex-bytes |
version | 0.1.27 |
source | src |
created_at | 2021-06-27 01:22:22.37568 |
updated_at | 2024-04-08 09:44:35.795938 |
description | Types and traits for working with bytes (bytes crate fork) |
homepage | |
repository | https://github.com/ntex-rs/ntex |
max_upload_size | |
id | 415314 |
size | 291,488 |
A utility library for working with bytes. This is fork of bytes crate (https://github.com/tokio-rs/bytes)
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 is optional and disabled by default. To enable use the feature serde
.
[dependencies]
ntex-bytes = { version = "0.1", features = ["serde"] }