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

#58 in Encoding

Download history 9379/week @ 2021-08-11 10311/week @ 2021-08-18 10371/week @ 2021-08-25 9520/week @ 2021-09-01 10225/week @ 2021-09-08 11432/week @ 2021-09-15 10193/week @ 2021-09-22 11870/week @ 2021-09-29 12246/week @ 2021-10-06 12096/week @ 2021-10-13 12282/week @ 2021-10-20 10876/week @ 2021-10-27 9189/week @ 2021-11-03 9197/week @ 2021-11-10 9479/week @ 2021-11-17 8101/week @ 2021-11-24

37,962 downloads per month
Used in 106 crates (28 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