Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@ license = "MIT OR Apache-2.0"

[workspace.dependencies]
# Workspace Crates
wdk = { path = "crates/wdk", version = "0.3.0" }
wdk-alloc = { path = "crates/wdk-alloc", version = "0.3.0" }
wdk-build = { path = "crates/wdk-build", version = "0.3.0" }
wdk-macros = { path = "crates/wdk-macros", version = "0.3.0" }
wdk-panic = { path = "crates/wdk-panic", version = "0.3.0" }
wdk-sys = { path = "crates/wdk-sys", version = "0.3.0" }
wdk = { path = "crates/wdk", version = "0.3.1" }
wdk-alloc = { path = "crates/wdk-alloc", version = "0.3.1" }
wdk-build = { path = "crates/wdk-build", version = "0.4.0" }
wdk-macros = { path = "crates/wdk-macros", version = "0.4.0" }
wdk-panic = { path = "crates/wdk-panic", version = "0.3.1" }
wdk-sys = { path = "crates/wdk-sys", version = "0.4.0" }

# External Crates
anyhow = "1.0.97"
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ The crates in this repository are available from [`crates.io`](https://crates.io
#!@rust
//! ```cargo
//! [dependencies]
//! wdk-build = "0.3.0"
//! wdk-build = "0.4.0"
//! ```
#![allow(unused_doc_comments)]

Expand Down
6 changes: 6 additions & 0 deletions crates/wdk-alloc/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).


## [0.3.1](https://github.com/microsoft/windows-drivers-rs/compare/wdk-alloc-v0.3.0...wdk-alloc-v0.3.1) - 2025-04-18

### Other

- update README to clarify community engagement and contact methods ([#312](https://github.com/microsoft/windows-drivers-rs/pull/312))

## [0.3.0](https://github.com/microsoft/windows-drivers-rs/compare/wdk-alloc-v0.2.0...wdk-alloc-v0.3.0) - 2024-09-27

### Added
Expand Down
2 changes: 1 addition & 1 deletion crates/wdk-alloc/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
edition.workspace = true
name = "wdk-alloc"
version = "0.3.0"
version = "0.3.1"
description = "alloc support for binaries compiled with the Windows Development Kit (WDK)"
repository.workspace = true
readme.workspace = true
Expand Down
87 changes: 58 additions & 29 deletions crates/wdk-build/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,35 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).


## [0.4.0](https://github.com/microsoft/windows-drivers-rs/compare/wdk-build-v0.3.0...wdk-build-v0.4.0) - 2025-04-18

### Added

- extend coverage in `wdk-sys` to include usb-related headers ([#296](https://github.com/microsoft/windows-drivers-rs/pull/296))
- expand wdk-sys coverage to include gpio and parallel ports related headers ([#278](https://github.com/microsoft/windows-drivers-rs/pull/278))
- add support for Storage API subset in `wdk-sys` ([#287](https://github.com/microsoft/windows-drivers-rs/pull/287))
- expand `wdk-sys` coverage to include spb-related headers ([#263](https://github.com/microsoft/windows-drivers-rs/pull/263))
- [**breaking**] expand `wdk-sys` coverage to include hid-related headers ([#260](https://github.com/microsoft/windows-drivers-rs/pull/260))

### Fixed

- [**breaking**] specify rust version & edition to wdk-default bindgen::builder ([#314](https://github.com/microsoft/windows-drivers-rs/pull/314))
- [**breaking**] explicitly mark `_KGDTENTRY64` and `_KIDTENTRY64` as opaque types in `bindgen` ([#277](https://github.com/microsoft/windows-drivers-rs/pull/277))
- suppress linker warnings exposed by nightly rustc change ([#279](https://github.com/microsoft/windows-drivers-rs/pull/279))
- add missing arm64rt library to linker flags for arm64 kernel-mode builds ([#261](https://github.com/microsoft/windows-drivers-rs/pull/261))

### Other

- update README to clarify community engagement and contact methods ([#312](https://github.com/microsoft/windows-drivers-rs/pull/312))
- remove noop `must_use` on trait impl ([#302](https://github.com/microsoft/windows-drivers-rs/pull/302))
- [**breaking**] Remove lazy static instances ([#250](https://github.com/microsoft/windows-drivers-rs/pull/250))
- fix panic condition docs for `package_driver_flow_condition_script` ([#264](https://github.com/microsoft/windows-drivers-rs/pull/264))
- port certificate-generation condition script to Rust ([#259](https://github.com/microsoft/windows-drivers-rs/pull/259))
- remove redundant code-path in `detect_wdk_content_root` ([#249](https://github.com/microsoft/windows-drivers-rs/pull/249))
- use `next_back` instead of `last` on double-ended iterators (`clippy::double_ended_iterator_last`) ([#262](https://github.com/microsoft/windows-drivers-rs/pull/262))
- use `is_none_or` for `clippy::nonminimal_bool` and resolve `clippy::needless_raw_string_hashes` ([#231](https://github.com/microsoft/windows-drivers-rs/pull/231))
- fix `clippy::nonminimal_bool` and `clippy::ref_option` issues ([#230](https://github.com/microsoft/windows-drivers-rs/pull/230))

## [0.3.0](https://github.com/microsoft/windows-drivers-rs/compare/wdk-build-v0.2.0...wdk-build-v0.3.0) - 2024-09-27

### Added
Expand Down Expand Up @@ -39,32 +68,32 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- fix `winget` llvm install command option ([#115](https://github.com/microsoft/windows-drivers-rs/pull/115))
- fix various pipeline breakages (nightly rustfmt bug, new nightly clippy lints, upstream winget dependency issue) ([#117](https://github.com/microsoft/windows-drivers-rs/pull/117))
- add lint exceptions for clippy::manual_c_str_literals and clippy::ref_as_ptr ([#108](https://github.com/microsoft/windows-drivers-rs/pull/108))
# Changelog
All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [0.2.0](https://github/microsoft/windows-drivers-rs/compare/wdk-build-v0.1.0...wdk-build-v0.2.0) - 2024-02-08
### Added
- package rust-driver-makefile.toml with wdk-build package ([#36](https://github/microsoft/windows-drivers-rs/pull/36))
- support multiple drivers (of same type) in same cargo workspace
- cargo-make argument forwarding
- generate CStr for c string constants instead of &[u8] ([#72](https://github/microsoft/windows-drivers-rs/pull/72))
### Fixed
- resolve warnings in rust-script blocks and only fail warnings in CI ([#87](https://github/microsoft/windows-drivers-rs/pull/87))
- add missing cpu-arch macro defintions
- fix wdk path regkey detection
### Other
- update versions in readme and rust-driver-makefile.toml
- update dependencies
- allow multiple_crate_versions in wdk-build (build dependency) ([#98](https://github/microsoft/windows-drivers-rs/pull/98))
- update cargo-make tasks with arch-specific tools
- Bump thiserror from 1.0.48 to 1.0.55 ([#59](https://github/microsoft/windows-drivers-rs/pull/59))
- restrict to one unsafe operation per block ([#24](https://github/microsoft/windows-drivers-rs/pull/24))
- [**breaking**] enable rustdoc lints and resolve errors
- initial open-source check in
# Changelog
All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).


## [0.2.0](https://github/microsoft/windows-drivers-rs/compare/wdk-build-v0.1.0...wdk-build-v0.2.0) - 2024-02-08

### Added
- package rust-driver-makefile.toml with wdk-build package ([#36](https://github/microsoft/windows-drivers-rs/pull/36))
- support multiple drivers (of same type) in same cargo workspace
- cargo-make argument forwarding
- generate CStr for c string constants instead of &[u8] ([#72](https://github/microsoft/windows-drivers-rs/pull/72))

### Fixed
- resolve warnings in rust-script blocks and only fail warnings in CI ([#87](https://github/microsoft/windows-drivers-rs/pull/87))
- add missing cpu-arch macro defintions
- fix wdk path regkey detection

### Other
- update versions in readme and rust-driver-makefile.toml
- update dependencies
- allow multiple_crate_versions in wdk-build (build dependency) ([#98](https://github/microsoft/windows-drivers-rs/pull/98))
- update cargo-make tasks with arch-specific tools
- Bump thiserror from 1.0.48 to 1.0.55 ([#59](https://github/microsoft/windows-drivers-rs/pull/59))
- restrict to one unsafe operation per block ([#24](https://github/microsoft/windows-drivers-rs/pull/24))
- [**breaking**] enable rustdoc lints and resolve errors
- initial open-source check in
2 changes: 1 addition & 1 deletion crates/wdk-build/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
edition.workspace = true
rust-version.workspace = true
name = "wdk-build"
version = "0.3.0"
version = "0.4.0"
description = "A library to configure a Cargo build script for binding generation and downstream linking of the WDK (Windows Driver Kit)"
repository.workspace = true
readme.workspace = true
Expand Down
24 changes: 12 additions & 12 deletions crates/wdk-build/rust-driver-makefile.toml
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ script_runner = "@rust"
script = '''
//! ```cargo
//! [dependencies]
//! wdk-build = { path = ".", version = "0.3.0" }
//! wdk-build = { path = ".", version = "0.4.0" }
//! ```
#![allow(unused_doc_comments)]

Expand All @@ -148,7 +148,7 @@ script_runner_args = [
script = '''
//! ```cargo
//! [dependencies]
//! wdk-build = { path = ".", version = "0.3.0" }
//! wdk-build = { path = ".", version = "0.4.0" }
//! ```
#![allow(unused_doc_comments)]

Expand Down Expand Up @@ -178,7 +178,7 @@ script_runner_args = [
script = '''
//! ```cargo
//! [dependencies]
//! wdk-build = { path = ".", version = "0.3.0" }
//! wdk-build = { path = ".", version = "0.4.0" }
//! ```
#![allow(unused_doc_comments)]

Expand Down Expand Up @@ -224,7 +224,7 @@ condition_script = '''

//! ```cargo
//! [dependencies]
//! wdk-build = { path = ".", version = "0.3.0" }
//! wdk-build = { path = ".", version = "0.4.0" }
//! ```
#![allow(unused_doc_comments)]

Expand All @@ -247,7 +247,7 @@ script = '''

//! ```cargo
//! [dependencies]
//! wdk-build = { path = ".", version = "0.3.0" }
//! wdk-build = { path = ".", version = "0.4.0" }
//! ```
#![allow(unused_doc_comments)]

Expand Down Expand Up @@ -311,7 +311,7 @@ script_runner_args = [
script = '''
//! ```cargo
//! [dependencies]
//! wdk-build = { path = ".", version = "0.3.0" }
//! wdk-build = { path = ".", version = "0.4.0" }
//! ```
#![allow(unused_doc_comments)]

Expand All @@ -335,7 +335,7 @@ script_runner_args = [
script = '''
//! ```cargo
//! [dependencies]
//! wdk-build = { path = ".", version = "0.3.0" }
//! wdk-build = { path = ".", version = "0.4.0" }
//! ```
#![allow(unused_doc_comments)]

Expand All @@ -358,7 +358,7 @@ script_runner_args = [
script = '''
//! ```cargo
//! [dependencies]
//! wdk-build = { path = ".", version = "0.3.0" }
//! wdk-build = { path = ".", version = "0.4.0" }
//! ```
#![allow(unused_doc_comments)]

Expand All @@ -381,7 +381,7 @@ script_runner_args = [
script = '''
//! ```cargo
//! [dependencies]
//! wdk-build = { path = ".", version = "0.3.0" }
//! wdk-build = { path = ".", version = "0.4.0" }
//! ```
#![allow(unused_doc_comments)]

Expand Down Expand Up @@ -415,7 +415,7 @@ condition_script = '''

//! ```cargo
//! [dependencies]
//! wdk-build = { path = ".", version = "0.3.0" }
//! wdk-build = { path = ".", version = "0.4.0" }
//! anyhow = "1"
//! ```
#![allow(unused_doc_comments)]
Expand Down Expand Up @@ -450,7 +450,7 @@ script_runner_args = [
script = '''
//! ```cargo
//! [dependencies]
//! wdk-build = { path = ".", version = "0.3.0" }
//! wdk-build = { path = ".", version = "0.4.0" }
//! ```
#![allow(unused_doc_comments)]

Expand Down Expand Up @@ -536,7 +536,7 @@ condition_script = '''

//! ```cargo
//! [dependencies]
//! wdk-build = { path = ".", version = "0.3.0" }
//! wdk-build = { path = ".", version = "0.4.0" }
//! anyhow = "1"
//! ```
#![allow(unused_doc_comments)]
Expand Down
4 changes: 2 additions & 2 deletions crates/wdk-build/rust-driver-sample-makefile.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ script_runner = "@rust"
script = '''
//! ```cargo
//! [dependencies]
//! wdk-build = { path = ".", version = "0.3.0" }
//! wdk-build = { path = ".", version = "0.4.0" }
//! ```
#![allow(unused_doc_comments)]

Expand All @@ -37,7 +37,7 @@ condition_script = '''

//! ```cargo
//! [dependencies]
//! wdk-build = { path = ".", version = "0.3.0" }
//! wdk-build = { path = ".", version = "0.4.0" }
//! anyhow = "1"
//! ```
#![allow(unused_doc_comments)]
Expand Down
8 changes: 5 additions & 3 deletions crates/wdk-build/src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,9 @@ fn read_registry_key_string_value(
// SAFETY: `&mut opened_key_handle` is coerced to a &raw mut, so the address passed as the
// argument is always valid. `&mut opened_key_handle` is coerced to a pointer of the correct
// type.
unsafe { RegOpenKeyExA(key_handle, sub_key, 0, KEY_READ, &mut opened_key_handle) }.is_ok() {
unsafe { RegOpenKeyExA(key_handle, sub_key, 0, KEY_READ, &raw mut opened_key_handle) }
.is_ok()
{
if
// SAFETY: `opened_key_handle` is valid key opened with the `KEY_QUERY_VALUE` access right
// (included in `KEY_READ`). `&mut len` is coerced to a &raw mut, so the address passed as
Expand All @@ -310,7 +312,7 @@ fn read_registry_key_string_value(
RRF_RT_REG_SZ,
None,
None,
Some(&mut len),
Some(&raw mut len),
)
}
.is_ok()
Expand All @@ -331,7 +333,7 @@ fn read_registry_key_string_value(
RRF_RT_REG_SZ,
None,
Some(buffer.as_mut_ptr().cast()),
Some(&mut len),
Some(&raw mut len),
)
}
.is_ok()
Expand Down
15 changes: 15 additions & 0 deletions crates/wdk-macros/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,21 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).


## [0.4.0](https://github.com/microsoft/windows-drivers-rs/compare/wdk-macros-v0.3.0...wdk-macros-v0.4.0) - 2025-04-18

### Added

- Cache parameters & return type during `call_unsafe_wdf_function_binding` macro expansion ([#295](https://github.com/microsoft/windows-drivers-rs/pull/295))

### Fixed

- passing cache tests when WDK config is enabled ([#332](https://github.com/microsoft/windows-drivers-rs/pull/332))

### Other

- update README to clarify community engagement and contact methods ([#312](https://github.com/microsoft/windows-drivers-rs/pull/312))
- [**breaking**] Remove lazy static instances ([#250](https://github.com/microsoft/windows-drivers-rs/pull/250))

## [0.3.0](https://github.com/microsoft/windows-drivers-rs/compare/wdk-macros-v0.2.0...wdk-macros-v0.3.0) - 2024-09-27

### Added
Expand Down
2 changes: 1 addition & 1 deletion crates/wdk-macros/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
edition = "2021"
name = "wdk-macros"
version = "0.3.0"
version = "0.4.0"
description = "A collection of macros that help make it easier to interact with wdk-sys's direct bindings. This should not be directly consumed, and should be instead consumed via the wdk-sys crate."
repository.workspace = true
readme.workspace = true
Expand Down
Loading
Loading