6 ms·
I'm glad to see that Microsoft is investing in Rust bindings for WDK[0], but browsing the repo, there's really no point in using this over C since they haven't
by AndrewGaspar 2y ago
I'm glad to see that Microsoft is investing in Rust bindings for WDK[0], but browsing the repo, there's really no point in using this over C since they haven't bothered to invest in safe, Rust native bindings. The kmdf example[1] is like 50% "SAFETY:" comments because they're stuck using the straight C bindings for every WDK API.
[0] https://github.com/microsoft/windows-drivers-rs/ https://github.com/microsoft/windows-drivers-rs/
[1] https://github.com/microsoft/windows-drivers-rs/blob/main/examples/sample-kmdf-driver/src/lib.rs https://github.com/microsoft/windows-drivers-rs/blob/main/ex...