1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
mod object_trait; pub use object_trait::Object; // The xmas-elf crate will work on all platforms, even if that platform doesn't // use elf files. mod elf; pub use elf::*; // The mach_o crate uses the OSX mach-o system library, so will only build on // OSX. #[cfg(target_os="macos")] mod macho; #[cfg(target_os="macos")] pub use macho::*; #[cfg(target_os="linux")] pub type File<'a> = Elf<'a>; #[cfg(target_os="macos")] pub type File<'a> = MachO<'a>;