54 lines
861 B
Rust
54 lines
861 B
Rust
#![feature(decl_macro)]
|
|
#![no_std]
|
|
|
|
/// Virtual Struct Offset
|
|
mod vso;
|
|
pub use vso::*;
|
|
|
|
|
|
/// upcast trait
|
|
mod upcast;
|
|
pub use upcast::Upcast;
|
|
pub use upcast::IntoUsize;
|
|
|
|
/// data manipulation utilities
|
|
mod data;
|
|
pub use data::*;
|
|
|
|
|
|
/// utility macros for branching
|
|
/// invoke_once, etc
|
|
mod branching;
|
|
pub use branching::*;
|
|
|
|
/// Utility macros for c ffi
|
|
mod cffi;
|
|
pub use cffi::*;
|
|
|
|
/// win32 utilities
|
|
#[cfg(feature = "win32")]
|
|
pub mod win32;
|
|
|
|
#[cfg(feature = "win32")]
|
|
pub use win32::{ image_base, image_header, find_kernel32, process_executable };
|
|
|
|
mod time;
|
|
pub use time::dur;
|
|
|
|
mod hash;
|
|
pub use hash::*;
|
|
|
|
mod strings;
|
|
pub use strings::*;
|
|
|
|
mod iter_tools;
|
|
pub use iter_tools::*;
|
|
|
|
/// re-export the signature macro
|
|
pub use xgen::signature;
|
|
pub use xgen::FromRepr;
|
|
pub trait FromRepr: Sized {
|
|
type Repr;
|
|
fn from_repr(repr: Self::Repr) -> Option<Self>;
|
|
}
|