Developers can now access enhanced tools and sample code for Rust in Windows driver development, although achieving production readiness remains challenging. Rust crates are available for creating Windows 11 drivers using frameworks like WDM, KMDF, and UMDF, but developers must still use unsafe blocks when interacting with the OS, which limits Rust's safety advantages. The WDF team is working on safe Rust abstractions to reduce unsafe code reliance, and there are efforts to integrate Rust into the Windows kernel, with some progress noted in the Windows 11 24H2 release.
A cargo extension called cargo-wdk is being developed to aid Rust driver development, with future updates planned for ARM64 support and automated processes. The current state of the project is not recommended for production use, as indicated by its GitHub repository, but developers can experiment with it while following Microsoft driver signature procedures. Analysis using GitHub's CodeQL tool, which now supports Rust, is required for this process, although the latest validated version for the Windows Hardware Compatibility Program is 2.21.4.
Microsoft Research announced plans to use Rust for memory safety in 2019, and in 2022, Azure CTO Mark Russinovich advocated for moving away from C/C++ in favor of Rust for new projects. The deployment of a Windows driver written in Rust is becoming increasingly feasible.