15 releases

✓ Uses Rust 2018 edition

0.3.0 Sep 25, 2019
0.3.0-beta5 Jul 31, 2019
0.3.0-beta2 May 21, 2019
0.3.0-alpha2 Jan 29, 2019
0.2.0 Mar 20, 2017

#30 in Encoding

Download history 1052/week @ 2019-06-12 1648/week @ 2019-06-19 1502/week @ 2019-06-26 1235/week @ 2019-07-03 1573/week @ 2019-07-10 1303/week @ 2019-07-17 1360/week @ 2019-07-24 1156/week @ 2019-07-31 1562/week @ 2019-08-07 972/week @ 2019-08-14 1406/week @ 2019-08-21 1027/week @ 2019-08-28 1497/week @ 2019-09-04 2527/week @ 2019-09-11 2315/week @ 2019-09-18

6,337 downloads per month
Used in 30 crates (9 directly)

MIT license

72KB
1.5K SLoC

cookie-factory

LICENSE Build Status Crates.io Version

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.

Reference documentation is available here.


lib.rs:

serialization library built with a combinator design similar to nom.

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.

No runtime deps