#![warn(missing_docs, rust_2018_idioms, missing_copy_implementations)]
use crate::{formats::dylib::writer::DylibWriter, helpers::MachoWriter, types::MachoProgram};
use gaia_types::{
helpers::{create_file, Url},
Result,
};
use std::path::Path;
pub mod types;
pub mod formats;
pub mod helpers;
pub mod builder;
pub fn dylib_write_path(macho: &MachoProgram, path: &Path) -> Result<Url> {
let (file, url) = create_file(path)?;
let mut dylib = DylibWriter::new(file);
dylib.write_program(macho)?;
Ok(url)
}