6 releases (breaking)
0.6.0 | Feb 20, 2021 |
---|---|
0.5.0 | Jan 31, 2021 |
0.4.0 | Aug 12, 2020 |
0.3.0 | Jul 17, 2020 |
0.1.1 | Jun 6, 2020 |
#1631 in Development tools
22 downloads per month
19KB
266 lines
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. Accessible through theserde-json
feature.JsonSerializer
is a lightweight alternative toSerdeSerializer
that uses thejson
anddecent-serde-json-alternative
crates. Accessible through theserde-json-alternative
feature.
lib.rs
:
This crate contains types implementing the Serializer trait of fuzzcheck. There are currently two implementations:
-
SerdeSerializer uses the
serde
andserde_json
crate to serialize the test inputs (of arbitrary Serializable type) to a.json
file. It is available under the “serde” feature -
[ByteSerializer] encodes and decodes values of type
Vec<u8>
by simply copy/pasting the bytes from/to the files. The extension is customizable.
Dependencies
~0–340KB