xHook bindings for Rust
```rust
use xhook_rs::*;
pub extern "C" fn mymalloc(size: libc::sizet) -> *mut c_void { println!("my malloc, {} bytes!", size); unsafe { libc::malloc(size) } }
fn main() { xhookregister(".*\.so$", "malloc", mymalloc as *const u8);
xhook_refresh(0);
unsafe {
//should call my_malloc here
let buf = libc::malloc(10);
println!("malloc: 10");
}
}
```
https://github.com/iqiyi/xHook