fuzzcheck_serializer
This crate provides implementations of the Serializer
trait defined by
fuzzcheck.
There are currently two choices:
ByteSerializer
serializes aVec<u8>
by directly writing the bits to a file. You can choose the file extension.SerdeSerializer
usesserde
andserde_json
to serialize any serde-Serializable
type to a json file.
A catch is that SerdeSerializer
is not directly defined in this crate. Instead,
you must use the define_serde_serializer!()
macro in the fuzz-target script to
define it. Like this:
extern crate fuzzcheck_serializer;
extern crate serde;
extern crate serde_json; // serde_json MUST be visible
extern crate fuzzcheck; // fuzzcheck MUST be visible
use ; // Serializable and Deserializable MUST be visible
// Makes the SerdeSerializer available to fuzzcheck
define_serde_serializer!;