Skip to content

jnbooth/bytes-pool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bytes-pool

Allocation-free sharing of bytes and strings using Bytes from the bytes crate as storage.

crates.io Documentation MIT licensed
Dependency Status Downloads

Usage

To use bytes-pool, first add this to your Cargo.toml:

[dependencies]
bytes-pool = "1"

Next, add this to your crate:

use bytes_pool::BytesPool;

no_std support

To use bytes-pool with no_std environment, disable the (enabled by default) std feature.

[dependencies]
bytes-pool = { version = "1", default-features = false }

bytes-pool forwards the std feature to bytes. It also forwards the extra-platforms feature if enabled. See the no_std documentation for the bytes crate for more information.

Serde support

Serde support is optional and disabled by default. To enable use the feature serde.

[dependencies]
bytes-pool = { 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 bytes-pools by you, shall be licensed as MIT, without any additional terms or conditions.

About

Allocation-free sharing of byte slices and strings

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages