Skip to content

A simple tool that quickly creates a Windows Driver rust crate.

License

Notifications You must be signed in to change notification settings

Zero-Tang/new_rust_windrv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

New Rust Windows Driver

This is a simple tool that simplifies the creation for Windows Driver crates in Rust.

Introduction

To be honest, the Microsoft's Guide to create a Windows driver crate costs way too much manual labor, especially the part for configuring the files. Why not we just simplify it?

This project will create a crate which has initialized all stuff, including all WDK dependencies, cargo configurations, and any other chores.
If you do things manually, then these chores include:

  • Use cargo to add WDK-related dependencies.
  • Modify Cargo.toml.
  • Create Makefile.toml.
  • Create .cargo/config.toml.
  • Create <crate_name>.inx.

Can you memorize all steps? It's somewhat unlikely to do these chores accurately.

Build

Just follow regular way to build a Rust program:

cargo build

Run

This tool expects you have installed rust-lang.

Place the tool somewhere you keep all of your projects. Double click it to run the tool. Then follow the prompt to create your crate.

After the crate is created, you should be able to build your driver:

cargo make

Please note that you need to satisfy the Build Requirements on your own.

License

This repository is licensed under the MIT License.

About

A simple tool that quickly creates a Windows Driver rust crate.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages