| Crates.io | ntex-bytes |
| lib.rs | ntex-bytes |
| version | 1.4.1 |
| created_at | 2021-06-27 01:22:22.37568+00 |
| updated_at | 2026-01-22 09:21:28.142069+00 |
| 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 | 223,429 |
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 = "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 = "1", features = ["serde"] }