With that in mind, let’s get started with a demo project. For example, I have log, string, nt and km-alloc crates which makes refactoring a lot easier and allows you to reuse those crates in other projects. This might sound a bit overkill, but I really like having a crate for only one task. I sat down and thought of a folder structure and split the project into 21 different crates. I made this mistake and had to break it into multiple crates. I’ll keep this example project simple but I recommend creating a workspace so you don’t end up having one big project. This post summarize what went wrong and what I learned. I almost gave up until I stumbled upon win_driver_example which made me realize that a lot has changed and that it’s not even that hard. One of these repositories is winapi-kmd-rs which is unfortunately really complicated and outdated. A quick search lead me to many unanswered questions and two Github repositories. ![]() A few months after I started I already gained lots of experience and began to wonder whether it’s possible to rewrite my Windows Kernel Drivers in Rust. That’s why I decided to rewrite one of my already existing C++ projects. I read the official Rust book already in the end of 2019 but never had a project idea. | not-matthias Home About Writing a kernel driver with Rust.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |