diff --git a/src/lib.rs b/src/lib.rs index 4995d17..62760f5 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,8 +1,17 @@ -pub mod locators; pub mod tricks; -#[cfg(feature = "rc")] -pub mod rc; +#[cfg(feature = "locator")] +pub mod locators; +pub use elf; +pub use proc_maps; +pub use libloading; +pub use retour; #[cfg(feature = "monitor")] pub mod monitor; +pub use tracing_subscriber; + +#[cfg(feature = "rc")] +pub mod rc; +pub use nix; + diff --git a/src/locators.rs b/src/locators.rs index 9ee58df..e26c651 100644 --- a/src/locators.rs +++ b/src/locators.rs @@ -24,7 +24,7 @@ pub fn find_symbol(name: &str) -> Result, Box Some((base, path)) => match exec::offset_in_elf(&path, &name)? { None => warn!("could not locate requested symbol in ELF"), Some(offset) => { - let addr : *const () = (base + offset) as *const (); + let addr = (base + offset) as *const (); return Ok(Some(unsafe { Function::from_ptr(addr) } )); } }