pub mod constants;
pub mod got;
pub mod imports;
pub mod layout;
pub mod lc;
pub mod read;
pub mod reloc;
pub mod sections;
pub mod structs;
pub mod symtab;
pub mod tapi;
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],
}
pub struct LinkOptions<'a> {
pub arch: Option<MachoTarget>,
pub dynamic: bool,
pub platform: Option<PlatformVersion>,
pub dead_strip: bool,
pub dylibs: &'a [Dylib<'a>],
}
impl Default for LinkOptions<'_> {
fn default() -> Self {
Self {
arch: None,
dynamic: false,
platform: None,
dead_strip: false,
dylibs: &[],
}
}
}