1 unstable release
0.1.16 | Feb 21, 2024 |
---|
#31 in #mini
12KB
204 lines
forward-dll-mini
// Cargo.toml
[lib]
name = "dinput8"
// name = "d3d11"
// Not only supports dinput8 and d3d11... test it yourself
crate-type = ["cdylib"]
[build-dependencies]
forward_dll_mini = { git = "https://github.com/vSylva/forward-dll-mini" }
// build.rs
use forward_dll_mini::forward_dll;
fn main() {
forward_dll("C:\\Windows\\System32\\dinput8.dll").unwrap();
// forward_dll("C:\\Windows\\System32\\d3d11.dll").unwrap();
}
Dependencies
~1.2–1.6MB
~32K SLoC