@@ -74,6 +74,8 @@ use crate::sensors_and_pools::{
7474 AndPool , DifferentObservations , MaximiseEachCounterPool , MaximiseObservationPool , MostNDiversePool ,
7575 SameObservations , SimplestToActivateCounterPool , WrapperSensor ,
7676} ;
77+ #[ cfg( feature = "serde_ron_serializer" ) ]
78+ use crate :: SerdeRonSerializer ;
7779#[ cfg( feature = "serde_json_serializer" ) ]
7880use crate :: SerdeSerializer ;
7981use crate :: {
@@ -427,6 +429,27 @@ where
427429 }
428430 }
429431}
432+
433+ #[ cfg( feature = "serde_ron_serializer" ) ]
434+ impl < F , M , V > FuzzerBuilder2 < F , M , V >
435+ where
436+ F : Fn ( & V ) -> bool ,
437+ V : Clone + serde:: Serialize + for < ' e > serde:: Deserialize < ' e > + ' static ,
438+ M : Mutator < V > ,
439+ {
440+ /// Specify [`SerdeRonSerializer`] as the serializer to use when saving the
441+ /// interesting test cases to the file system.
442+ #[ no_coverage]
443+ pub fn serde_ron_serializer ( self ) -> FuzzerBuilder3 < F , M , V > {
444+ FuzzerBuilder3 {
445+ test_function : self . test_function ,
446+ mutator : self . mutator ,
447+ serializer : Box :: new ( SerdeRonSerializer :: < V > :: default ( ) ) ,
448+ _phantom : PhantomData ,
449+ }
450+ }
451+ }
452+
430453impl < F , M , V > FuzzerBuilder3 < F , M , V >
431454where
432455 F : Fn ( & V ) -> bool ,
0 commit comments