Macro fuzztest::fuzz_marker [] [src]

macro_rules! fuzz_marker {
    ($marker:expr) => { ... };
}

This macro indicates a point which should be accessible by the fuzzer

The goal of setting those markers is to ensure that the fuzzing targets are well set up and capable of reaching important parts of the code.

This macro takes one argument: a marker whose type is convertible to &str.

fuzz_marker!("point_a");

Performance

Under normal compilation this macro expands to nothing and therefore can't affect in any way performance.

When compiled from the check_target_with_marker function (which sets --cfg fuzztest in RUSTFLAGS), it will expand to a very carefully optimized piece of code that should have almost no impact on performance.