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
14KB
273 lines
byte_lamination
A Rust library ('crate') providing type-readable byte transformation wrappers.
Licence
Licensed under either of
- Apache Licence, Version 2.0 (LICENSE.Apache2 or http://www.apache.org/licenses/LICENSE-2.0)
- MIT Licence (LICENSE.MIT or http://opensource.org/licenses/MIT)
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:
zstd
: Zstd compressioncbor
: CBOR serialisation, compatible with serde.bare
: BARE serialisation, compatible with serde.
No encryption wrappers have been included yet because it would be irresponsible to include unaudited cryptographic tools.
Dependencies
~0–690KB
~14K SLoC