Add UMDF panic registration function from wdk-panic to cargo-wdk UMDF template

Open Beginner friendly
#646 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
82/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Quiet
Tech stack
rust
Domain
tooling

Research direction

Start by locating the cargo-wdk UMDF template file named lib.rs.tmp and inspect how driver_entry is defined. Add the wdk-panic install_panic_hook call there, then verify that a generated UMDF driver includes the panic handler and account for the next crates.io release and crate version bump.

Written by the indexing model from the issue text.

Description

enhancement next-release-priority

The wdk-panic crate requires a driver developer to manually add a function call of install_panic_hook from wdk-panic in driver_entry in every new UMDF driver they create.

During the next Release to crates.io and crate version bump - add this function call to the cargo-wdk UMDF template lib.rs.tmp so new drivers created with cargo wdk will already have the panic handler installed.

Dominant language
Rust
Stars
1.9k
Forks
136
Avg merge
7d 7h
Merged PRs (30d)
4

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from microsoft/windows-drivers-rs

All issues in microsoft/windows-drivers-rs

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.