puffin/fuzzer/sanitizer/
mod.rs

1pub mod asan;
2
3#[cfg(all(feature = "sancov_pcguard_log", feature = "sancov"))]
4compile_error!("`sancov_pcguard_log` and `sancov` features are mutually exclusive.");
5
6cfg_if::cfg_if! {
7    if #[cfg(test)] {
8        // Use dummy in tests and benchmarking
9        pub mod sancov_dummy;
10    } else {
11        #[allow(unused_imports)]
12        // This import achieves that OpenSSl compiled with -fsanitize-coverage=trace-pc-guard can link
13        pub use libafl_targets;
14    }
15}
16
17cfg_if::cfg_if! {
18    if #[cfg(all(not(test), feature = "sancov_pcguard_log"))] {
19        pub mod sancov_pcguard_log;
20    }
21}