New version of deku_string v 0.4.0. Notable changes:
- Support for
Vec<T> will all benefits of the library.
- Full support for
no_std (thanks for contribution).
- Support for
defmt library used in embedded environments.
- New more readable documentation (including tests).
deku_string is a utility crate for deku, binary bit-aware parser with ability create serde-like models. Crate provides thin wrappers around String and Vec to support various common layouts such as fixed-length, prefix length (Pascal-like and .Net-like) and zero-ended strings.
Stay tuned for for more awesome news!
PS: Looking for contributors to provide 16-bit compile target support.
Deku is a declarative binary parser. deku_string is an extension which currently provides utility wrappers for data vectors and unicode strings, which can be prefixed or fixed length. Additionally library provides support for 7-bit encoded integers from .NET.
For example, I often work with binary structures where strings are either length prefixed (with zero character in a buffer) or in fixed size buffer with a zero-ended sting inside.
There’s multiple examples with custom writer and reader functions, which work, but are less convenient to use.
Any additional ideas for utilities are welcome.