Note: this is still work in progress!
This is a Windows kernel framework in Rust that consists of windows-kernel-sys, a crate that provides low-level unsafe bindings generated using bindgen, and windows-kernel-rs, a crate that provides safe abstractions in Rust on top.
To give you an idea of whether these crates are useful to you, here is a non-exhaustive overview of the features that are currently supported and that are more or less planned:
KernelModule to provide safe entry and exit points to your driver.Result.FastMutex (similar to Mutex) based on the FAST_MUTEX API.PushLock (similar to RwLock) based on the EX_PUSH_LOCK API.Note: this framework may progress faster than I can keep my articles up-to-date. They may currently be due for a bit of a rewrite to reflect some of the changes that made it into this repository since I have written the articles.
In addition, there are articles that cover implementing Windows kernel drivers in Rust from the ground up, including corresponding examples provided as part of this repository:
$ claude mcp add windows-kernel-rs \
-- python -m otcore.mcp_server <graph>