cfg_if::cfg_if! {
if #[cfg(target_os = "macos")] {
mod macos;
} else if #[cfg(target_os = "linux")] {
mod linux;
} else if #[cfg(target_os = "windows")] {
mod windows;
} else {
compile_error!("Unsupported OS");
}
}
#[allow(dead_code)]
pub trait Vulnerability {
fn backend_name() -> &'static str;
fn trigger(&self, length: usize) -> crate::Result<()>;
fn validate_environment(&self) -> crate::Result<()>;
}