[][src]Crate fuzzcheck_serializer

This crate contains types implementing the Serializer trait of fuzzcheck. There are currently two implementations:

  • SerdeSerializer uses the serde and serde_json crate to serialize the test inputs (of arbitrary Serializable type) to a .json file. However, SerdeSerializer is not defined in this crate. Instead, it can be made available through the define_serde_serializer macro.

  • ByteSerializer encodes and decodes values of type Vec<u8> by simply copy/pasting the bytes from/to the files. The extension is customizable.

Macros

define_serde_serializer

Defines a struct called SerdeSerializer<T> that implements the fuzzcheck::Serializer trait using serde.

Structs

ByteSerializer

A Serializer for Vec that simply copies the bytes from/to the files.