It would be worthwhile to fuzz the conversion of the Rust types to and from JSON. Most of the types use the derived serde serialization and deserialization, but some types use custom string serialization and deserialization.
The primary things to check are that:
No Display impl returns an error, since doing so would cause any .to_string() call on the type to panic.
FromStr and Display impls round trip to the same values, or in the case of utf8 lossy values.
It would be worthwhile to fuzz the conversion of the Rust types to and from JSON. Most of the types use the derived serde serialization and deserialization, but some types use custom string serialization and deserialization.
The primary things to check are that:
No
Display
impl returns an error, since doing so would cause any.to_string()
call on the type to panic.FromStr
andDisplay
impls round trip to the same values, or in the case of utf8 lossy values.