#byte #wrapper #transformation #serialization #zstd #cbor #bare

byte_lamination

Type-readable byte transformation wrappers, with CBOR and BARE serialisation and Zstd compression

3 releases

0.1.2 May 8, 2023
0.1.1 May 7, 2023
0.1.0 May 7, 2023

#2261 in Encoding

30 downloads per month
Used in fancy_mdbx

MIT/Apache

14KB
273 lines

byte_lamination

A Rust library ('crate') providing type-readable byte transformation wrappers.

Licence

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 licence, shall be dual licensed as above, without any additional terms or conditions.


lib.rs:

A framework for 'layered' wrappers for byte transformations.

This crate provides a framework for writing nested wrappers that operate on bytes, performing operations like en/decryption, (de)compression and (de)serialisation.

The end result might allows you to write something like e.g. SymLockBox<Zstd<>>.

The crate comes built in with a few wrappers, enableable using Cargo features:

No encryption wrappers have been included yet because it would be irresponsible to include unaudited cryptographic tools.

Dependencies

~0–690KB
~14K SLoC