1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
cfg_if::cfg_if! {
if #[cfg(any(target_os = "linux", target_os = "android"))] {
mod linux;
pub use linux::*;
} else if #[cfg(target_os = "windows")] {
mod windows;
pub use windows::*;
} else if #[cfg(target_os = "macos")] {
mod mac;
pub use mac::*;
}
}
pub mod minidump_cpu;
pub mod minidump_format;
// Non-windows platforms need additional code since they are essentially
// replicating functionality we get for free on Windows
cfg_if::cfg_if! {
if #[cfg(not(target_os = "windows"))] {
pub(crate) mod mem_writer;
pub(crate) mod dir_section;
}
}