| Crates.io | ntex-bytes |
| lib.rs | ntex-bytes |
| version | 0.1.30 |
| created_at | 2021-06-27 01:22:22.37568+00 |
| updated_at | 2025-07-16 12:11:41.018653+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 | 320,902 |
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"] }