1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
//! **Gen**eral interface for **Link**ers.
//!
//! This crate provides general interface to integrate many linkers
//! overflowing in the world (such as [Gnu ld](https://sourceware.org/binutils/),
//! [LLD](https://lld.llvm.org/), etc.) and use as *one* rust library.
//!
//! See also [genlink-impl](https://github.com/watcol/genlink-impl) for concrete
//! implementations for the popular linkers.
//! (They are also good models to implement by yourself. ^^)

mod error;
mod genlink;
mod linker;

// Re-exports
pub use crate::{
    error::{LinkError, LinkResult},
    genlink::GenLink,
    linker::Linker,
};

pub use std::ffi::{OsStr, OsString};