1 个不稳定版本
0.1.16 | 2024年2月21日 |
---|
#27 in #mini
12KB
204 行代码(不含注释)
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();
}
依赖项
~2MB
~40K SLoC