1 unstable release
0.1.0 | Nov 9, 2024 |
---|
#1777 in Parser implementations
265 downloads per month
21KB
509 lines
RLP-decoder
Recursive-length-prefix decoding in Rust.
This project is forked from parity rlp library, and removed all the encoding functions. To be used in embedded systems.
The original parity rlp library heavily relies on Bytes crate, which can not work on chipsets (eg nanox) do not support CAS operations.
lib.rs
:
Recursive Length Prefix serialization crate.
Allows decoding, and view onto rlp-slice
What should you use when?
Use decode
function when:
- You want to decode something inline.
- You do not work on big set of data.
- You want to decode whole rlp at once.
Use Rlp
when:
- You need to handle data corruption errors.
- You are working on input data.
- You want to get view onto rlp-slice.
- You don't want to decode whole rlp at once.
Dependencies
~11KB