2 stable releases
1.2.2 | Aug 1, 2022 |
---|
#1518 in Network programming
205KB
3K
SLoC
RcBytes
The aim for this crate is to implement a Rc version bytes, which means that the structs in this crate does not implement the Sync
and Send
.
This crate is heavily based on the bytes (A utility library for working with bytes).
Usage
To use rcbytes
, first add this to your Cargo.toml
:
[dependencies]
rcbytes = "1"
Next, add this to your crate:
use rcbytes::{Bytes, BytesMut, Buf, BufMut};
Serde support
Serde support is optional and disabled by default. To enable use the feature serde
.
[dependencies]
rcbytes = { 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 rcbytes
by you, shall be licensed as MIT, without any additional
terms or conditions.
Dependencies
~165KB