Crates.io | cookie-factory |
lib.rs | cookie-factory |
version | 0.3.3 |
source | src |
created_at | 2017-03-17 10:03:52.024688 |
updated_at | 2024-03-21 20:34:06.291708 |
description | nom inspired serialization library |
homepage | |
repository | https://github.com/rust-bakery/cookie-factory |
max_upload_size | |
id | 9010 |
size | 99,557 |
serialization library built with a combinator design similar to the nom parser combinators library.
Serializers are built up from single purpose serializers, like slice
to write a raw byte slice, or be_u16
to write a u16
integer in big
endian form.
Those small serializers can then be assembled by using combinators.
As an example, all(["abcd", "efgh", "ijkl"].iter().map(string))(output)
will write "abcdefghijkl"
to output
.