1mod arch;
12mod error;
13mod types;
14
15#[cfg(any(
16 windows,
17 target_os = "linux",
18 target_os = "macos",
19 target_os = "ios",
20 test
21))]
22mod import;
23
24#[cfg(any(target_os = "linux", test))]
25mod elf;
26#[cfg(any(target_os = "macos", target_os = "ios", test))]
27mod macho;
28#[cfg(any(windows, test))]
29mod pe;
30
31pub use error::{Error, Result};
32pub use types::{ImportKind, Symbol};
33
34#[cfg(windows)]
38mod sys;
39#[cfg(target_os = "linux")]
40#[path = "sys_unix.rs"]
41mod sys;
42#[cfg(any(target_os = "macos", target_os = "ios"))]
43#[path = "sys_macos.rs"]
44mod sys;
45
46#[cfg(target_os = "linux")]
47mod dlpi;
48
49#[cfg(windows)]
50mod module;
51#[cfg(target_os = "linux")]
52#[path = "module_elf.rs"]
53mod module;
54#[cfg(any(target_os = "macos", target_os = "ios"))]
55#[path = "module_macho.rs"]
56mod module;
57
58#[cfg(any(windows, target_os = "linux", target_os = "macos", target_os = "ios"))]
59mod slot;
60
61#[cfg(any(windows, target_os = "linux", target_os = "macos", target_os = "ios"))]
62pub use module::Module;
63#[cfg(any(windows, target_os = "linux", target_os = "macos", target_os = "ios"))]
64pub use slot::{HookGuard, ImportSlot, InstalledHook, Replacement, install};