pub mod constants;
pub mod got;
pub mod imports;
pub mod layout;
pub mod lc;
pub mod live;
pub mod read;
pub mod reloc;
pub mod sections;
pub mod structs;
pub mod symtab;
pub mod tapi;
pub mod unwind;
pub mod writer;
pub use got::GotPlan;
pub use read::{MachOFile, MachSymbolIter, MachSymbolTable};
pub use reloc::MachoTarget;
pub use structs::{MachReloc, MachSection, MachSymbol};
pub use writer::{link_macho, link_macho_with_options};
#[derive(Clone, Copy, Debug, Eq, PartialEq)]
pub struct PlatformVersion {
pub platform: u32,
pub min_os: u32,
pub sdk: u32,
}
pub struct Dylib<'a> {
pub install_name: &'a str,
pub exports: &'a [String],
}
#[derive(Default)]
pub struct LinkOptions<'a> {
pub arch: Option<MachoTarget>,
pub dynamic: bool,
pub dylib: bool,
pub install_name: Option<&'a str>,
pub exported_symbols: Option<&'a [String]>,
pub platform: Option<PlatformVersion>,
pub dead_strip: bool,
pub dylibs: &'a [Dylib<'a>],
}