17 releases

0.3.2 Jan 23, 2021
0.3.1 Feb 10, 2020
0.3.0 Sep 25, 2019
0.3.0-beta5 Jul 31, 2019
0.2.0 Mar 20, 2017

#71 in Encoding

Download history 22681/week @ 2023-02-03 22138/week @ 2023-02-10 21117/week @ 2023-02-17 22435/week @ 2023-02-24 19821/week @ 2023-03-03 23175/week @ 2023-03-10 23027/week @ 2023-03-17 23193/week @ 2023-03-24 23510/week @ 2023-03-31 21140/week @ 2023-04-07 24442/week @ 2023-04-14 25605/week @ 2023-04-21 25562/week @ 2023-04-28 29553/week @ 2023-05-05 31498/week @ 2023-05-12 26689/week @ 2023-05-19

117,998 downloads per month
Used in 192 crates (31 directly)

MIT license

79KB
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