From 5d9109c5b5e538a3feda93aa6f4224a50fa46279 Mon Sep 17 00:00:00 2001 From: Melvin Wang Date: Wed, 5 Nov 2025 17:55:34 -0800 Subject: [PATCH 01/15] chore: release --- Cargo.lock | 12 +- Cargo.toml | 12 +- crates/wdk-alloc/CHANGELOG.md | 11 ++ crates/wdk-alloc/Cargo.toml | 2 +- crates/wdk-build/CHANGELOG.md | 207 +++++++++++++++++++-------------- crates/wdk-build/Cargo.toml | 2 +- crates/wdk-macros/CHANGELOG.md | 12 ++ crates/wdk-macros/Cargo.toml | 2 +- crates/wdk-panic/CHANGELOG.md | 7 ++ crates/wdk-panic/Cargo.toml | 2 +- crates/wdk-sys/CHANGELOG.md | 165 ++++++++++++++------------ crates/wdk-sys/Cargo.toml | 2 +- crates/wdk/CHANGELOG.md | 12 ++ crates/wdk/Cargo.toml | 2 +- 14 files changed, 269 insertions(+), 181 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index b41c55a4b..0c2400afa 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1128,7 +1128,7 @@ dependencies = [ [[package]] name = "wdk" -version = "0.3.1" +version = "0.4.0" dependencies = [ "cfg-if", "tracing", @@ -1139,7 +1139,7 @@ dependencies = [ [[package]] name = "wdk-alloc" -version = "0.3.1" +version = "0.4.0" dependencies = [ "tracing", "tracing-subscriber", @@ -1149,7 +1149,7 @@ dependencies = [ [[package]] name = "wdk-build" -version = "0.4.0" +version = "0.5.0" dependencies = [ "anyhow", "assert_fs", @@ -1172,7 +1172,7 @@ dependencies = [ [[package]] name = "wdk-macros" -version = "0.4.0" +version = "0.5.0" dependencies = [ "cfg-if", "fs4", @@ -1188,11 +1188,11 @@ dependencies = [ [[package]] name = "wdk-panic" -version = "0.3.1" +version = "0.4.0" [[package]] name = "wdk-sys" -version = "0.4.0" +version = "0.5.0" dependencies = [ "anyhow", "bindgen", diff --git a/Cargo.toml b/Cargo.toml index 8de2e6763..fb6a36ba5 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -23,12 +23,12 @@ license = "MIT OR Apache-2.0" [workspace.dependencies] # Workspace Crates -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" } +wdk = { path = "crates/wdk", version = "0.4.0" } +wdk-alloc = { path = "crates/wdk-alloc", version = "0.4.0" } +wdk-build = { path = "crates/wdk-build", version = "0.5.0" } +wdk-macros = { path = "crates/wdk-macros", version = "0.5.0" } +wdk-panic = { path = "crates/wdk-panic", version = "0.4.0" } +wdk-sys = { path = "crates/wdk-sys", version = "0.5.0" } # External Crates anyhow = "1.0.97" diff --git a/crates/wdk-alloc/CHANGELOG.md b/crates/wdk-alloc/CHANGELOG.md index de3cb9a09..936eb30a9 100644 --- a/crates/wdk-alloc/CHANGELOG.md +++ b/crates/wdk-alloc/CHANGELOG.md @@ -5,6 +5,17 @@ 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-alloc-v0.3.1...wdk-alloc-v0.4.0) - 2025-11-06 + +### Added + +- add `cargo-wdk` cargo extension ([#306](https://github.com/microsoft/windows-drivers-rs/pull/306)) + +### Other + +- [**breaking**] bump to Rust 2024 Edition ([#430](https://github.com/microsoft/windows-drivers-rs/pull/430)) +- enforce typo checking ([#452](https://github.com/microsoft/windows-drivers-rs/pull/452)) + ## [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 diff --git a/crates/wdk-alloc/Cargo.toml b/crates/wdk-alloc/Cargo.toml index 74cea20b0..d97e131f8 100644 --- a/crates/wdk-alloc/Cargo.toml +++ b/crates/wdk-alloc/Cargo.toml @@ -1,7 +1,7 @@ [package] edition.workspace = true name = "wdk-alloc" -version = "0.3.1" +version = "0.4.0" description = "alloc support for binaries compiled with the Windows Development Kit (WDK)" repository.workspace = true readme.workspace = true diff --git a/crates/wdk-build/CHANGELOG.md b/crates/wdk-build/CHANGELOG.md index 83a83d6e0..dfe841d22 100644 --- a/crates/wdk-build/CHANGELOG.md +++ b/crates/wdk-build/CHANGELOG.md @@ -1,99 +1,126 @@ -# 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.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 +# 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.5.0](https://github.com/microsoft/windows-drivers-rs/compare/wdk-build-v0.4.0...wdk-build-v0.5.0) - 2025-11-06 ### Added -- add `skip_umdf_static_crt_check` unstable option to prevent static crt linkage check ([#217](https://github.com/microsoft/windows-drivers-rs/pull/217)) -- [**breaking**] add 'ExAllocatePool' to blocklist due to deprecation ([#190](https://github.com/microsoft/windows-drivers-rs/pull/190)) -- configure WDK configuration via parsing Cargo manifest metadata ([#186](https://github.com/microsoft/windows-drivers-rs/pull/186)) +- enhance error handling with IoError and IoErrorMetadata for improved std::io::Error diagnostics for fs errors ([#480](https://github.com/microsoft/windows-drivers-rs/pull/480)) +- add color to cargo wdk and cargo make argument forwarding ([#519](https://github.com/microsoft/windows-drivers-rs/pull/519)) +- enhance debug tracing in bindgen and config modules ([#455](https://github.com/microsoft/windows-drivers-rs/pull/455)) +- enhance cargo metadata parsing to respect config.toml ([#451](https://github.com/microsoft/windows-drivers-rs/pull/451)) +- *(ci)* install and use `nuget` packages in CI workflows ([#406](https://github.com/microsoft/windows-drivers-rs/pull/406)) +- add `cargo-wdk` cargo extension ([#306](https://github.com/microsoft/windows-drivers-rs/pull/306)) +- make `emit_check_cfg_settings` function public ([#352](https://github.com/microsoft/windows-drivers-rs/pull/352)) ### Fixed -- typos in Getting Started section of README.md ([#213](https://github.com/microsoft/windows-drivers-rs/pull/213)) -- skip infverif task for sample drivers built with certain GE WDK versions ([#143](https://github.com/microsoft/windows-drivers-rs/pull/143)) -- [**breaking**] prevent linking of wdk libraries in tests that depend on `wdk-sys` ([#118](https://github.com/microsoft/windows-drivers-rs/pull/118)) +- use latest version of ucx in the WDKContent as default ([#411](https://github.com/microsoft/windows-drivers-rs/pull/411)) +- improve error reporting when no wdk-build package is found ([#339](https://github.com/microsoft/windows-drivers-rs/pull/339)) ### Other -- fix `clippy::empty-line-after-doc-comments` lint issues ([#221](https://github.com/microsoft/windows-drivers-rs/pull/221)) -- move infverif task's condition script logic to cargo_make.rs ([#216](https://github.com/microsoft/windows-drivers-rs/pull/216)) -- remove unstable `rustfmt` `version` setting (replaced by auto-detected `edition`) ([#220](https://github.com/microsoft/windows-drivers-rs/pull/220)) -- replace directory substitution plugin with condition_script_runner_args ([#208](https://github.com/microsoft/windows-drivers-rs/pull/208)) -- use cargo-make's built-in arg expansion instead of custom plugin support in `nested-cargo-workspace-in-cargo-make-emulated-workspace-support` ([#201](https://github.com/microsoft/windows-drivers-rs/pull/201)) -- Improve doc comments to comply with `too_long_first_doc_paragraph` clippy lint ([#202](https://github.com/microsoft/windows-drivers-rs/pull/202)) -- Update README.md ([#180](https://github.com/microsoft/windows-drivers-rs/pull/180)) -- update readme to call out bugged LLVM 18 versions ([#169](https://github.com/microsoft/windows-drivers-rs/pull/169)) -- Build perf: Make calls to bindgen run in parallel ([#159](https://github.com/microsoft/windows-drivers-rs/pull/159)) -- add support for rustc-check-cfg ([#150](https://github.com/microsoft/windows-drivers-rs/pull/150)) -- Bump windows from 0.52.0 to 0.56.0 ([#144](https://github.com/microsoft/windows-drivers-rs/pull/144)) -- Bump rustversion from 1.0.14 to 1.0.15 ([#145](https://github.com/microsoft/windows-drivers-rs/pull/145)) -- use a standardized workspace lint table ([#134](https://github.com/microsoft/windows-drivers-rs/pull/134)) -- Bump clap from 4.4.18 to 4.5.4 ([#130](https://github.com/microsoft/windows-drivers-rs/pull/130)) -- Bump thiserror from 1.0.56 to 1.0.59 ([#142](https://github.com/microsoft/windows-drivers-rs/pull/142)) -- 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 definitions -- 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 +- Prepare cargo-wdk for release ([#560](https://github.com/microsoft/windows-drivers-rs/pull/560)) +- [**breaking**] bump to Rust 2024 Edition ([#430](https://github.com/microsoft/windows-drivers-rs/pull/430)) +- use `std::path::absolute` instead of canonicalize + strip_extended_path_prefix ([#462](https://github.com/microsoft/windows-drivers-rs/pull/462)) +- Bump tracing-subscriber from 0.3.19 to 0.3.20 ([#492](https://github.com/microsoft/windows-drivers-rs/pull/492)) +- enforce typo checking ([#452](https://github.com/microsoft/windows-drivers-rs/pull/452)) +- update crate references for consistency in documentation ([#440](https://github.com/microsoft/windows-drivers-rs/pull/440)) +- improve cargo-wdk tests ([#429](https://github.com/microsoft/windows-drivers-rs/pull/429)) + +## [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 + +- add `skip_umdf_static_crt_check` unstable option to prevent static crt linkage check ([#217](https://github.com/microsoft/windows-drivers-rs/pull/217)) +- [**breaking**] add 'ExAllocatePool' to blocklist due to deprecation ([#190](https://github.com/microsoft/windows-drivers-rs/pull/190)) +- configure WDK configuration via parsing Cargo manifest metadata ([#186](https://github.com/microsoft/windows-drivers-rs/pull/186)) + +### Fixed + +- typos in Getting Started section of README.md ([#213](https://github.com/microsoft/windows-drivers-rs/pull/213)) +- skip infverif task for sample drivers built with certain GE WDK versions ([#143](https://github.com/microsoft/windows-drivers-rs/pull/143)) +- [**breaking**] prevent linking of wdk libraries in tests that depend on `wdk-sys` ([#118](https://github.com/microsoft/windows-drivers-rs/pull/118)) + +### Other + +- fix `clippy::empty-line-after-doc-comments` lint issues ([#221](https://github.com/microsoft/windows-drivers-rs/pull/221)) +- move infverif task's condition script logic to cargo_make.rs ([#216](https://github.com/microsoft/windows-drivers-rs/pull/216)) +- remove unstable `rustfmt` `version` setting (replaced by auto-detected `edition`) ([#220](https://github.com/microsoft/windows-drivers-rs/pull/220)) +- replace directory substitution plugin with condition_script_runner_args ([#208](https://github.com/microsoft/windows-drivers-rs/pull/208)) +- use cargo-make's built-in arg expansion instead of custom plugin support in `nested-cargo-workspace-in-cargo-make-emulated-workspace-support` ([#201](https://github.com/microsoft/windows-drivers-rs/pull/201)) +- Improve doc comments to comply with `too_long_first_doc_paragraph` clippy lint ([#202](https://github.com/microsoft/windows-drivers-rs/pull/202)) +- Update README.md ([#180](https://github.com/microsoft/windows-drivers-rs/pull/180)) +- update readme to call out bugged LLVM 18 versions ([#169](https://github.com/microsoft/windows-drivers-rs/pull/169)) +- Build perf: Make calls to bindgen run in parallel ([#159](https://github.com/microsoft/windows-drivers-rs/pull/159)) +- add support for rustc-check-cfg ([#150](https://github.com/microsoft/windows-drivers-rs/pull/150)) +- Bump windows from 0.52.0 to 0.56.0 ([#144](https://github.com/microsoft/windows-drivers-rs/pull/144)) +- Bump rustversion from 1.0.14 to 1.0.15 ([#145](https://github.com/microsoft/windows-drivers-rs/pull/145)) +- use a standardized workspace lint table ([#134](https://github.com/microsoft/windows-drivers-rs/pull/134)) +- Bump clap from 4.4.18 to 4.5.4 ([#130](https://github.com/microsoft/windows-drivers-rs/pull/130)) +- Bump thiserror from 1.0.56 to 1.0.59 ([#142](https://github.com/microsoft/windows-drivers-rs/pull/142)) +- 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 definitions +- 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 diff --git a/crates/wdk-build/Cargo.toml b/crates/wdk-build/Cargo.toml index ed0d0b46a..c9f2e60e7 100644 --- a/crates/wdk-build/Cargo.toml +++ b/crates/wdk-build/Cargo.toml @@ -2,7 +2,7 @@ edition.workspace = true rust-version.workspace = true name = "wdk-build" -version = "0.4.0" +version = "0.5.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 diff --git a/crates/wdk-macros/CHANGELOG.md b/crates/wdk-macros/CHANGELOG.md index ac092a257..422c47b38 100644 --- a/crates/wdk-macros/CHANGELOG.md +++ b/crates/wdk-macros/CHANGELOG.md @@ -5,6 +5,18 @@ 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.5.0](https://github.com/microsoft/windows-drivers-rs/compare/wdk-macros-v0.4.0...wdk-macros-v0.5.0) - 2025-11-06 + +### Added + +- add `cargo-wdk` cargo extension ([#306](https://github.com/microsoft/windows-drivers-rs/pull/306)) + +### Other + +- [**breaking**] bump to Rust 2024 Edition ([#430](https://github.com/microsoft/windows-drivers-rs/pull/430)) +- enforce typo checking ([#452](https://github.com/microsoft/windows-drivers-rs/pull/452)) +- update crate references for consistency in documentation ([#440](https://github.com/microsoft/windows-drivers-rs/pull/440)) + ## [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 diff --git a/crates/wdk-macros/Cargo.toml b/crates/wdk-macros/Cargo.toml index f9cbeb95d..32193d828 100644 --- a/crates/wdk-macros/Cargo.toml +++ b/crates/wdk-macros/Cargo.toml @@ -1,7 +1,7 @@ [package] edition = "2021" name = "wdk-macros" -version = "0.4.0" +version = "0.5.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 diff --git a/crates/wdk-panic/CHANGELOG.md b/crates/wdk-panic/CHANGELOG.md index 70d137608..5ca0d7b74 100644 --- a/crates/wdk-panic/CHANGELOG.md +++ b/crates/wdk-panic/CHANGELOG.md @@ -5,6 +5,13 @@ 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-panic-v0.3.1...wdk-panic-v0.4.0) - 2025-11-06 + +### Other + +- [**breaking**] bump to Rust 2024 Edition ([#430](https://github.com/microsoft/windows-drivers-rs/pull/430)) +- enforce typo checking ([#452](https://github.com/microsoft/windows-drivers-rs/pull/452)) + ## [0.3.1](https://github.com/microsoft/windows-drivers-rs/compare/wdk-panic-v0.3.0...wdk-panic-v0.3.1) - 2025-04-18 ### Other diff --git a/crates/wdk-panic/Cargo.toml b/crates/wdk-panic/Cargo.toml index 4d1541315..f4a5107a5 100644 --- a/crates/wdk-panic/Cargo.toml +++ b/crates/wdk-panic/Cargo.toml @@ -1,7 +1,7 @@ [package] edition.workspace = true name = "wdk-panic" -version = "0.3.1" +version = "0.4.0" description = "Default panic handler implementations for programs built with WDK" repository.workspace = true readme.workspace = true diff --git a/crates/wdk-sys/CHANGELOG.md b/crates/wdk-sys/CHANGELOG.md index c634575f5..4d13fdd6a 100644 --- a/crates/wdk-sys/CHANGELOG.md +++ b/crates/wdk-sys/CHANGELOG.md @@ -1,82 +1,101 @@ -# 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.4.0](https://github.com/microsoft/windows-drivers-rs/compare/wdk-sys-v0.3.0...wdk-sys-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)) -- Use stack-based formatter for debug-printing. ([#233](https://github.com/microsoft/windows-drivers-rs/pull/233)) - -### Fixed - -- passing cache tests when WDK config is enabled ([#332](https://github.com/microsoft/windows-drivers-rs/pull/332)) -- [**breaking**] specify rust version & edition to wdk-default bindgen::builder ([#314](https://github.com/microsoft/windows-drivers-rs/pull/314)) -- use absolute paths for items used in PAGED_CODE macro ([#297](https://github.com/microsoft/windows-drivers-rs/pull/297)) - -### 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)) -- 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)) - -## [0.3.0](https://github.com/microsoft/windows-drivers-rs/compare/wdk-sys-v0.2.0...wdk-sys-v0.3.0) - 2024-09-27 +# 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.5.0](https://github.com/microsoft/windows-drivers-rs/compare/wdk-sys-v0.4.0...wdk-sys-v0.5.0) - 2025-11-06 ### Added -- add more precise NTSTATUS const fns ([#183](https://github.com/microsoft/windows-drivers-rs/pull/183)) -- configure WDK configuration via parsing Cargo manifest metadata ([#186](https://github.com/microsoft/windows-drivers-rs/pull/186)) +- enhance error handling with IoError and IoErrorMetadata for improved std::io::Error diagnostics for fs errors ([#480](https://github.com/microsoft/windows-drivers-rs/pull/480)) +- add `cargo-wdk` cargo extension ([#306](https://github.com/microsoft/windows-drivers-rs/pull/306)) ### Fixed -- typos in Getting Started section of README.md ([#213](https://github.com/microsoft/windows-drivers-rs/pull/213)) -- [**breaking**] prevent linking of wdk libraries in tests that depend on `wdk-sys` ([#118](https://github.com/microsoft/windows-drivers-rs/pull/118)) +- use latest version of ucx in the WDKContent as default ([#411](https://github.com/microsoft/windows-drivers-rs/pull/411)) +- allow unnecessary_transmutes lint for bindgen-generated types.rs ([#350](https://github.com/microsoft/windows-drivers-rs/pull/350)) ### Other -- Improve doc comments to comply with `too_long_first_doc_paragraph` clippy lint ([#202](https://github.com/microsoft/windows-drivers-rs/pull/202)) -- Update README.md ([#180](https://github.com/microsoft/windows-drivers-rs/pull/180)) -- update readme to call out bugged LLVM 18 versions ([#169](https://github.com/microsoft/windows-drivers-rs/pull/169)) -- Build perf: Make calls to bindgen run in parallel ([#159](https://github.com/microsoft/windows-drivers-rs/pull/159)) -- Bump rustversion from 1.0.14 to 1.0.15 ([#145](https://github.com/microsoft/windows-drivers-rs/pull/145)) -- use a standardized workspace lint table ([#134](https://github.com/microsoft/windows-drivers-rs/pull/134)) -- Bump anyhow from 1.0.79 to 1.0.82 ([#140](https://github.com/microsoft/windows-drivers-rs/pull/140)) -- Bump thiserror from 1.0.56 to 1.0.59 ([#142](https://github.com/microsoft/windows-drivers-rs/pull/142)) -- change version bounds for `manual_c_str_literals` and `ref_as_ptr` clippy lints ([#127](https://github.com/microsoft/windows-drivers-rs/pull/127)) -- 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-sys-v0.1.0...wdk-sys-v0.2.0) - 2024-02-08 - -### Added -- 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)) - -### Other -- update dependencies -- allow multiple_crate_versions in wdk-build (build dependency) ([#98](https://github/microsoft/windows-drivers-rs/pull/98)) -- allow exception for clippy::pub_underscore_fields in generated code ([#77](https://github/microsoft/windows-drivers-rs/pull/77)) -- Bump thiserror from 1.0.48 to 1.0.55 ([#59](https://github/microsoft/windows-drivers-rs/pull/59)) -- reduce noise from bindgen warnings -- fix clippy errors missed due to buggy ci stage -- restrict to one unsafe operation per block ([#24](https://github/microsoft/windows-drivers-rs/pull/24)) -- [**breaking**] enable rustdoc lints and resolve errors -- remove extra keywords in cargo manifests -- initial open-source check in +- [**breaking**] bump to Rust 2024 Edition ([#430](https://github.com/microsoft/windows-drivers-rs/pull/430)) +- improve logging for build action ([#495](https://github.com/microsoft/windows-drivers-rs/pull/495)) +- enforce typo checking ([#452](https://github.com/microsoft/windows-drivers-rs/pull/452)) +- Add stubs for __CxxFrameHandler4 and __GSHandlerCheck_EH4 ([#438](https://github.com/microsoft/windows-drivers-rs/pull/438)) + +## [0.4.0](https://github.com/microsoft/windows-drivers-rs/compare/wdk-sys-v0.3.0...wdk-sys-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)) +- Use stack-based formatter for debug-printing. ([#233](https://github.com/microsoft/windows-drivers-rs/pull/233)) + +### Fixed + +- passing cache tests when WDK config is enabled ([#332](https://github.com/microsoft/windows-drivers-rs/pull/332)) +- [**breaking**] specify rust version & edition to wdk-default bindgen::builder ([#314](https://github.com/microsoft/windows-drivers-rs/pull/314)) +- use absolute paths for items used in PAGED_CODE macro ([#297](https://github.com/microsoft/windows-drivers-rs/pull/297)) + +### 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)) +- 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)) + +## [0.3.0](https://github.com/microsoft/windows-drivers-rs/compare/wdk-sys-v0.2.0...wdk-sys-v0.3.0) - 2024-09-27 + +### Added + +- add more precise NTSTATUS const fns ([#183](https://github.com/microsoft/windows-drivers-rs/pull/183)) +- configure WDK configuration via parsing Cargo manifest metadata ([#186](https://github.com/microsoft/windows-drivers-rs/pull/186)) + +### Fixed + +- typos in Getting Started section of README.md ([#213](https://github.com/microsoft/windows-drivers-rs/pull/213)) +- [**breaking**] prevent linking of wdk libraries in tests that depend on `wdk-sys` ([#118](https://github.com/microsoft/windows-drivers-rs/pull/118)) + +### Other + +- Improve doc comments to comply with `too_long_first_doc_paragraph` clippy lint ([#202](https://github.com/microsoft/windows-drivers-rs/pull/202)) +- Update README.md ([#180](https://github.com/microsoft/windows-drivers-rs/pull/180)) +- update readme to call out bugged LLVM 18 versions ([#169](https://github.com/microsoft/windows-drivers-rs/pull/169)) +- Build perf: Make calls to bindgen run in parallel ([#159](https://github.com/microsoft/windows-drivers-rs/pull/159)) +- Bump rustversion from 1.0.14 to 1.0.15 ([#145](https://github.com/microsoft/windows-drivers-rs/pull/145)) +- use a standardized workspace lint table ([#134](https://github.com/microsoft/windows-drivers-rs/pull/134)) +- Bump anyhow from 1.0.79 to 1.0.82 ([#140](https://github.com/microsoft/windows-drivers-rs/pull/140)) +- Bump thiserror from 1.0.56 to 1.0.59 ([#142](https://github.com/microsoft/windows-drivers-rs/pull/142)) +- change version bounds for `manual_c_str_literals` and `ref_as_ptr` clippy lints ([#127](https://github.com/microsoft/windows-drivers-rs/pull/127)) +- 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-sys-v0.1.0...wdk-sys-v0.2.0) - 2024-02-08 + +### Added +- 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)) + +### Other +- update dependencies +- allow multiple_crate_versions in wdk-build (build dependency) ([#98](https://github/microsoft/windows-drivers-rs/pull/98)) +- allow exception for clippy::pub_underscore_fields in generated code ([#77](https://github/microsoft/windows-drivers-rs/pull/77)) +- Bump thiserror from 1.0.48 to 1.0.55 ([#59](https://github/microsoft/windows-drivers-rs/pull/59)) +- reduce noise from bindgen warnings +- fix clippy errors missed due to buggy ci stage +- restrict to one unsafe operation per block ([#24](https://github/microsoft/windows-drivers-rs/pull/24)) +- [**breaking**] enable rustdoc lints and resolve errors +- remove extra keywords in cargo manifests +- initial open-source check in diff --git a/crates/wdk-sys/Cargo.toml b/crates/wdk-sys/Cargo.toml index 1a935d7d3..4a9a268c4 100644 --- a/crates/wdk-sys/Cargo.toml +++ b/crates/wdk-sys/Cargo.toml @@ -1,7 +1,7 @@ [package] edition.workspace = true name = "wdk-sys" -version = "0.4.0" +version = "0.5.0" # Since the WDK links against many different dlls (that vary based off configuration), this crate sets the system library name to be "wdk". This name is only used by downstream build.rs scripts to consume metadata links = "wdk" description = "Direct bindings to APIs available in the Windows Development Kit (WDK)" diff --git a/crates/wdk/CHANGELOG.md b/crates/wdk/CHANGELOG.md index 251df38cc..cf3172af6 100644 --- a/crates/wdk/CHANGELOG.md +++ b/crates/wdk/CHANGELOG.md @@ -5,6 +5,18 @@ 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-v0.3.1...wdk-v0.4.0) - 2025-11-06 + +### Added + +- add `cargo-wdk` cargo extension ([#306](https://github.com/microsoft/windows-drivers-rs/pull/306)) + +### Other + +- [**breaking**] bump to Rust 2024 Edition ([#430](https://github.com/microsoft/windows-drivers-rs/pull/430)) +- enforce typo checking ([#452](https://github.com/microsoft/windows-drivers-rs/pull/452)) +- update crate references for consistency in documentation ([#440](https://github.com/microsoft/windows-drivers-rs/pull/440)) + ## [0.3.1](https://github.com/microsoft/windows-drivers-rs/compare/wdk-v0.3.0...wdk-v0.3.1) - 2025-04-18 ### Other diff --git a/crates/wdk/Cargo.toml b/crates/wdk/Cargo.toml index be491a7c8..f2c2a8eb8 100644 --- a/crates/wdk/Cargo.toml +++ b/crates/wdk/Cargo.toml @@ -1,7 +1,7 @@ [package] edition.workspace = true name = "wdk" -version = "0.3.1" +version = "0.4.0" # This crate doesn't actually directly link to any native libraries, but its set to wdk-sys in order to pass metadata to consumers of this crates links = "wdk-sys" description = "Safe idiomatic bindings to APIs available in the Windows Development Kit (WDK)" From 9c5cc1e03dc1568da8bd4f860e1c8231f0485831 Mon Sep 17 00:00:00 2001 From: Melvin Wang Date: Wed, 5 Nov 2025 15:11:40 -0800 Subject: [PATCH 02/15] update makefile wdk-build versions --- crates/wdk-build/rust-driver-makefile.toml | 24 +++++++++---------- .../rust-driver-sample-makefile.toml | 4 ++-- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/crates/wdk-build/rust-driver-makefile.toml b/crates/wdk-build/rust-driver-makefile.toml index 4fa1bdba2..46b345d5c 100644 --- a/crates/wdk-build/rust-driver-makefile.toml +++ b/crates/wdk-build/rust-driver-makefile.toml @@ -122,7 +122,7 @@ script_runner = "@rust" script = ''' //! ```cargo //! [dependencies] -//! wdk-build = { path = ".", version = "0.4.0" } +//! wdk-build = { path = ".", version = "0.5.0" } //! ``` #![allow(unused_doc_comments)] @@ -148,7 +148,7 @@ script_runner_args = [ script = ''' //! ```cargo //! [dependencies] -//! wdk-build = { path = ".", version = "0.4.0" } +//! wdk-build = { path = ".", version = "0.5.0" } //! ``` #![allow(unused_doc_comments)] @@ -188,7 +188,7 @@ script_runner_args = [ script = ''' //! ```cargo //! [dependencies] -//! wdk-build = { path = ".", version = "0.4.0" } +//! wdk-build = { path = ".", version = "0.5.0" } //! ``` #![allow(unused_doc_comments)] @@ -234,7 +234,7 @@ condition_script = ''' //! ```cargo //! [dependencies] -//! wdk-build = { path = ".", version = "0.4.0" } +//! wdk-build = { path = ".", version = "0.5.0" } //! ``` #![allow(unused_doc_comments)] @@ -257,7 +257,7 @@ script = ''' //! ```cargo //! [dependencies] -//! wdk-build = { path = ".", version = "0.4.0" } +//! wdk-build = { path = ".", version = "0.5.0" } //! ``` #![allow(unused_doc_comments)] @@ -321,7 +321,7 @@ script_runner_args = [ script = ''' //! ```cargo //! [dependencies] -//! wdk-build = { path = ".", version = "0.4.0" } +//! wdk-build = { path = ".", version = "0.5.0" } //! ``` #![allow(unused_doc_comments)] @@ -345,7 +345,7 @@ script_runner_args = [ script = ''' //! ```cargo //! [dependencies] -//! wdk-build = { path = ".", version = "0.4.0" } +//! wdk-build = { path = ".", version = "0.5.0" } //! ``` #![allow(unused_doc_comments)] @@ -368,7 +368,7 @@ script_runner_args = [ script = ''' //! ```cargo //! [dependencies] -//! wdk-build = { path = ".", version = "0.4.0" } +//! wdk-build = { path = ".", version = "0.5.0" } //! ``` #![allow(unused_doc_comments)] @@ -391,7 +391,7 @@ script_runner_args = [ script = ''' //! ```cargo //! [dependencies] -//! wdk-build = { path = ".", version = "0.4.0" } +//! wdk-build = { path = ".", version = "0.5.0" } //! ``` #![allow(unused_doc_comments)] @@ -425,7 +425,7 @@ condition_script = ''' //! ```cargo //! [dependencies] -//! wdk-build = { path = ".", version = "0.4.0" } +//! wdk-build = { path = ".", version = "0.5.0" } //! anyhow = "1" //! ``` #![allow(unused_doc_comments)] @@ -460,7 +460,7 @@ script_runner_args = [ script = ''' //! ```cargo //! [dependencies] -//! wdk-build = { path = ".", version = "0.4.0" } +//! wdk-build = { path = ".", version = "0.5.0" } //! ``` #![allow(unused_doc_comments)] @@ -546,7 +546,7 @@ condition_script = ''' //! ```cargo //! [dependencies] -//! wdk-build = { path = ".", version = "0.4.0" } +//! wdk-build = { path = ".", version = "0.5.0" } //! anyhow = "1" //! ``` #![allow(unused_doc_comments)] diff --git a/crates/wdk-build/rust-driver-sample-makefile.toml b/crates/wdk-build/rust-driver-sample-makefile.toml index 29e574f67..0a9f2fb90 100644 --- a/crates/wdk-build/rust-driver-sample-makefile.toml +++ b/crates/wdk-build/rust-driver-sample-makefile.toml @@ -10,7 +10,7 @@ script_runner = "@rust" script = ''' //! ```cargo //! [dependencies] -//! wdk-build = { path = ".", version = "0.4.0" } +//! wdk-build = { path = ".", version = "0.5.0" } //! ``` #![allow(unused_doc_comments)] @@ -37,7 +37,7 @@ condition_script = ''' //! ```cargo //! [dependencies] -//! wdk-build = { path = ".", version = "0.4.0" } +//! wdk-build = { path = ".", version = "0.5.0" } //! anyhow = "1" //! ``` #![allow(unused_doc_comments)] From 755aa914b3f07d5f314694088c25b2469f877a1e Mon Sep 17 00:00:00 2001 From: Melvin Wang Date: Wed, 5 Nov 2025 15:12:01 -0800 Subject: [PATCH 03/15] remove versions from samples --- examples/sample-kmdf-driver/Cargo.toml | 10 +++++----- examples/sample-umdf-driver/Cargo.toml | 6 +++--- examples/sample-wdm-driver/Cargo.toml | 10 +++++----- 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/examples/sample-kmdf-driver/Cargo.toml b/examples/sample-kmdf-driver/Cargo.toml index 88f120e43..b26ec0e01 100644 --- a/examples/sample-kmdf-driver/Cargo.toml +++ b/examples/sample-kmdf-driver/Cargo.toml @@ -19,13 +19,13 @@ target-kmdf-version-minor = 33 crate-type = ["cdylib"] [build-dependencies] -wdk-build = { path = "../../crates/wdk-build", version = "0.4.0" } +wdk-build.path = "../../crates/wdk-build" [dependencies] -wdk = { path = "../../crates/wdk", version = "0.3.1" } -wdk-alloc = { path = "../../crates/wdk-alloc", version = "0.3.1" } -wdk-panic = { path = "../../crates/wdk-panic", version = "0.3.1" } -wdk-sys = { path = "../../crates/wdk-sys", version = "0.4.0" } +wdk.path = "../../crates/wdk" +wdk-alloc.path = "../../crates/wdk-alloc" +wdk-panic.path = "../../crates/wdk-panic" +wdk-sys.path = "../../crates/wdk-sys" [features] default = [] diff --git a/examples/sample-umdf-driver/Cargo.toml b/examples/sample-umdf-driver/Cargo.toml index defe0441e..5d0f69fdb 100644 --- a/examples/sample-umdf-driver/Cargo.toml +++ b/examples/sample-umdf-driver/Cargo.toml @@ -19,11 +19,11 @@ target-umdf-version-minor = 31 crate-type = ["cdylib"] [build-dependencies] -wdk-build = { path = "../../crates/wdk-build", version = "0.4.0" } +wdk-build.path = "../../crates/wdk-build" [dependencies] -wdk = { path = "../../crates/wdk", version = "0.3.1" } -wdk-sys = { path = "../../crates/wdk-sys", version = "0.4.0" } +wdk.path = "../../crates/wdk" +wdk-sys.path = "../../crates/wdk-sys" [features] default = [] diff --git a/examples/sample-wdm-driver/Cargo.toml b/examples/sample-wdm-driver/Cargo.toml index a06419f46..b10e81d98 100644 --- a/examples/sample-wdm-driver/Cargo.toml +++ b/examples/sample-wdm-driver/Cargo.toml @@ -17,13 +17,13 @@ driver-type = "WDM" crate-type = ["cdylib"] [build-dependencies] -wdk-build = { path = "../../crates/wdk-build", version = "0.4.0" } +wdk-build.path = "../../crates/wdk-build" [dependencies] -wdk-alloc = { path = "../../crates/wdk-alloc", version = "0.3.1" } -wdk = { path = "../../crates/wdk", version = "0.3.1" } -wdk-panic = { path = "../../crates/wdk-panic", version = "0.3.1" } -wdk-sys = { path = "../../crates/wdk-sys", version = "0.4.0" } +wdk-alloc.path = "../../crates/wdk-alloc" +wdk.path = "../../crates/wdk" +wdk-panic.path = "../../crates/wdk-panic" +wdk-sys.path = "../../crates/wdk-sys" [features] default = [] From 7da6da03d33239e8e89a4d440079e54a91b75439 Mon Sep 17 00:00:00 2001 From: Melvin Wang Date: Wed, 5 Nov 2025 15:13:18 -0800 Subject: [PATCH 04/15] update locks --- examples/sample-kmdf-driver/Cargo.lock | 12 ++++++------ examples/sample-umdf-driver/Cargo.lock | 8 ++++---- examples/sample-wdm-driver/Cargo.lock | 12 ++++++------ tests/config-kmdf/Cargo.lock | 6 +++--- tests/config-umdf/Cargo.lock | 6 +++--- tests/mixed-package-kmdf-workspace/Cargo.lock | 12 ++++++------ tests/umdf-driver-workspace/Cargo.lock | 8 ++++---- tests/wdk-sys-tests/Cargo.lock | 6 +++--- 8 files changed, 35 insertions(+), 35 deletions(-) diff --git a/examples/sample-kmdf-driver/Cargo.lock b/examples/sample-kmdf-driver/Cargo.lock index 1ca15cd6e..bbf7aeaca 100644 --- a/examples/sample-kmdf-driver/Cargo.lock +++ b/examples/sample-kmdf-driver/Cargo.lock @@ -669,7 +669,7 @@ checksum = "ba73ea9cf16a25df0c8caa16c51acb937d5712a8429db78a3ee29d5dcacd3a65" [[package]] name = "wdk" -version = "0.3.1" +version = "0.4.0" dependencies = [ "cfg-if", "tracing", @@ -680,7 +680,7 @@ dependencies = [ [[package]] name = "wdk-alloc" -version = "0.3.1" +version = "0.4.0" dependencies = [ "tracing", "tracing-subscriber", @@ -690,7 +690,7 @@ dependencies = [ [[package]] name = "wdk-build" -version = "0.4.0" +version = "0.5.0" dependencies = [ "anyhow", "bindgen", @@ -712,7 +712,7 @@ dependencies = [ [[package]] name = "wdk-macros" -version = "0.4.0" +version = "0.5.0" dependencies = [ "cfg-if", "fs4", @@ -727,11 +727,11 @@ dependencies = [ [[package]] name = "wdk-panic" -version = "0.3.1" +version = "0.4.0" [[package]] name = "wdk-sys" -version = "0.4.0" +version = "0.5.0" dependencies = [ "anyhow", "bindgen", diff --git a/examples/sample-umdf-driver/Cargo.lock b/examples/sample-umdf-driver/Cargo.lock index 70c111dca..082ba687e 100644 --- a/examples/sample-umdf-driver/Cargo.lock +++ b/examples/sample-umdf-driver/Cargo.lock @@ -672,7 +672,7 @@ checksum = "830b7e5d4d90034032940e4ace0d9a9a057e7a45cd94e6c007832e39edb82f6d" [[package]] name = "wdk" -version = "0.3.1" +version = "0.4.0" dependencies = [ "cfg-if", "tracing", @@ -683,7 +683,7 @@ dependencies = [ [[package]] name = "wdk-build" -version = "0.4.0" +version = "0.5.0" dependencies = [ "anyhow", "bindgen", @@ -705,7 +705,7 @@ dependencies = [ [[package]] name = "wdk-macros" -version = "0.4.0" +version = "0.5.0" dependencies = [ "cfg-if", "fs4", @@ -720,7 +720,7 @@ dependencies = [ [[package]] name = "wdk-sys" -version = "0.4.0" +version = "0.5.0" dependencies = [ "anyhow", "bindgen", diff --git a/examples/sample-wdm-driver/Cargo.lock b/examples/sample-wdm-driver/Cargo.lock index 500edbb2c..0e0eeef10 100644 --- a/examples/sample-wdm-driver/Cargo.lock +++ b/examples/sample-wdm-driver/Cargo.lock @@ -674,7 +674,7 @@ checksum = "830b7e5d4d90034032940e4ace0d9a9a057e7a45cd94e6c007832e39edb82f6d" [[package]] name = "wdk" -version = "0.3.1" +version = "0.4.0" dependencies = [ "cfg-if", "tracing", @@ -685,7 +685,7 @@ dependencies = [ [[package]] name = "wdk-alloc" -version = "0.3.1" +version = "0.4.0" dependencies = [ "tracing", "tracing-subscriber", @@ -695,7 +695,7 @@ dependencies = [ [[package]] name = "wdk-build" -version = "0.4.0" +version = "0.5.0" dependencies = [ "anyhow", "bindgen", @@ -717,7 +717,7 @@ dependencies = [ [[package]] name = "wdk-macros" -version = "0.4.0" +version = "0.5.0" dependencies = [ "cfg-if", "fs4", @@ -732,11 +732,11 @@ dependencies = [ [[package]] name = "wdk-panic" -version = "0.3.1" +version = "0.4.0" [[package]] name = "wdk-sys" -version = "0.4.0" +version = "0.5.0" dependencies = [ "anyhow", "bindgen", diff --git a/tests/config-kmdf/Cargo.lock b/tests/config-kmdf/Cargo.lock index 8403ad231..07ce5d5f9 100644 --- a/tests/config-kmdf/Cargo.lock +++ b/tests/config-kmdf/Cargo.lock @@ -873,7 +873,7 @@ checksum = "ba73ea9cf16a25df0c8caa16c51acb937d5712a8429db78a3ee29d5dcacd3a65" [[package]] name = "wdk-build" -version = "0.4.0" +version = "0.5.0" dependencies = [ "anyhow", "bindgen", @@ -895,7 +895,7 @@ dependencies = [ [[package]] name = "wdk-macros" -version = "0.4.0" +version = "0.5.0" dependencies = [ "cfg-if", "fs4", @@ -923,7 +923,7 @@ dependencies = [ [[package]] name = "wdk-sys" -version = "0.4.0" +version = "0.5.0" dependencies = [ "anyhow", "bindgen", diff --git a/tests/config-umdf/Cargo.lock b/tests/config-umdf/Cargo.lock index 9be508fcf..53c09b398 100644 --- a/tests/config-umdf/Cargo.lock +++ b/tests/config-umdf/Cargo.lock @@ -873,7 +873,7 @@ checksum = "ba73ea9cf16a25df0c8caa16c51acb937d5712a8429db78a3ee29d5dcacd3a65" [[package]] name = "wdk-build" -version = "0.4.0" +version = "0.5.0" dependencies = [ "anyhow", "bindgen", @@ -895,7 +895,7 @@ dependencies = [ [[package]] name = "wdk-macros" -version = "0.4.0" +version = "0.5.0" dependencies = [ "cfg-if", "fs4", @@ -923,7 +923,7 @@ dependencies = [ [[package]] name = "wdk-sys" -version = "0.4.0" +version = "0.5.0" dependencies = [ "anyhow", "bindgen", diff --git a/tests/mixed-package-kmdf-workspace/Cargo.lock b/tests/mixed-package-kmdf-workspace/Cargo.lock index acc906627..c0d8a7f1d 100644 --- a/tests/mixed-package-kmdf-workspace/Cargo.lock +++ b/tests/mixed-package-kmdf-workspace/Cargo.lock @@ -679,7 +679,7 @@ checksum = "ba73ea9cf16a25df0c8caa16c51acb937d5712a8429db78a3ee29d5dcacd3a65" [[package]] name = "wdk" -version = "0.3.1" +version = "0.4.0" dependencies = [ "cfg-if", "tracing", @@ -690,7 +690,7 @@ dependencies = [ [[package]] name = "wdk-alloc" -version = "0.3.1" +version = "0.4.0" dependencies = [ "tracing", "tracing-subscriber", @@ -700,7 +700,7 @@ dependencies = [ [[package]] name = "wdk-build" -version = "0.4.0" +version = "0.5.0" dependencies = [ "anyhow", "bindgen", @@ -722,7 +722,7 @@ dependencies = [ [[package]] name = "wdk-macros" -version = "0.4.0" +version = "0.5.0" dependencies = [ "cfg-if", "fs4", @@ -737,11 +737,11 @@ dependencies = [ [[package]] name = "wdk-panic" -version = "0.3.1" +version = "0.4.0" [[package]] name = "wdk-sys" -version = "0.4.0" +version = "0.5.0" dependencies = [ "anyhow", "bindgen", diff --git a/tests/umdf-driver-workspace/Cargo.lock b/tests/umdf-driver-workspace/Cargo.lock index 5e3048876..301d68a70 100644 --- a/tests/umdf-driver-workspace/Cargo.lock +++ b/tests/umdf-driver-workspace/Cargo.lock @@ -682,7 +682,7 @@ checksum = "ba73ea9cf16a25df0c8caa16c51acb937d5712a8429db78a3ee29d5dcacd3a65" [[package]] name = "wdk" -version = "0.3.1" +version = "0.4.0" dependencies = [ "cfg-if", "tracing", @@ -693,7 +693,7 @@ dependencies = [ [[package]] name = "wdk-build" -version = "0.4.0" +version = "0.5.0" dependencies = [ "anyhow", "bindgen", @@ -715,7 +715,7 @@ dependencies = [ [[package]] name = "wdk-macros" -version = "0.4.0" +version = "0.5.0" dependencies = [ "cfg-if", "fs4", @@ -730,7 +730,7 @@ dependencies = [ [[package]] name = "wdk-sys" -version = "0.4.0" +version = "0.5.0" dependencies = [ "anyhow", "bindgen", diff --git a/tests/wdk-sys-tests/Cargo.lock b/tests/wdk-sys-tests/Cargo.lock index 7aa12d69b..5d395b606 100644 --- a/tests/wdk-sys-tests/Cargo.lock +++ b/tests/wdk-sys-tests/Cargo.lock @@ -664,7 +664,7 @@ checksum = "ba73ea9cf16a25df0c8caa16c51acb937d5712a8429db78a3ee29d5dcacd3a65" [[package]] name = "wdk-build" -version = "0.4.0" +version = "0.5.0" dependencies = [ "anyhow", "bindgen", @@ -686,7 +686,7 @@ dependencies = [ [[package]] name = "wdk-macros" -version = "0.4.0" +version = "0.5.0" dependencies = [ "cfg-if", "fs4", @@ -701,7 +701,7 @@ dependencies = [ [[package]] name = "wdk-sys" -version = "0.4.0" +version = "0.5.0" dependencies = [ "anyhow", "bindgen", From 29a6e288515886f6a43e704195dcde8b4c0a977f Mon Sep 17 00:00:00 2001 From: Melvin Wang Date: Wed, 5 Nov 2025 14:55:58 -0800 Subject: [PATCH 05/15] set release_always to false --- release-plz.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/release-plz.toml b/release-plz.toml index d8585f37d..333f8f13a 100644 --- a/release-plz.toml +++ b/release-plz.toml @@ -2,6 +2,7 @@ git_release_draft = true pr_draft = true pr_labels = ["release"] +release_always = false [changelog] header = """# Changelog From d2057e6b2934319aff17042a31051f9a6199f47e Mon Sep 17 00:00:00 2001 From: Melvin Wang Date: Wed, 5 Nov 2025 20:56:45 -0800 Subject: [PATCH 06/15] revert cargo-wdk to 0.0.0 --- crates/cargo-wdk/Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/cargo-wdk/Cargo.toml b/crates/cargo-wdk/Cargo.toml index f178fe3f8..aecd47d25 100644 --- a/crates/cargo-wdk/Cargo.toml +++ b/crates/cargo-wdk/Cargo.toml @@ -1,7 +1,7 @@ [package] edition.workspace = true name = "cargo-wdk" -version = "0.1.0" +version = "0.0.0" authors = ["Microsoft"] description = "A Cargo extension for building Windows drivers using the Windows Driver Kit (WDK)" repository.workspace = true From 4c0ac5f7154ce400700819df5e5eecbb80630930 Mon Sep 17 00:00:00 2001 From: Melvin Wang Date: Wed, 5 Nov 2025 21:13:07 -0800 Subject: [PATCH 07/15] update cargo-wdk to 0.1.0 and generate changelog --- crates/cargo-wdk/CHANGELOG.md | 48 +++++++++++++++++++++++++++++++++++ crates/cargo-wdk/Cargo.toml | 2 +- 2 files changed, 49 insertions(+), 1 deletion(-) create mode 100644 crates/cargo-wdk/CHANGELOG.md diff --git a/crates/cargo-wdk/CHANGELOG.md b/crates/cargo-wdk/CHANGELOG.md new file mode 100644 index 000000000..6dfd655b6 --- /dev/null +++ b/crates/cargo-wdk/CHANGELOG.md @@ -0,0 +1,48 @@ +# 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.1.0](https://github.com/microsoft/windows-drivers-rs/compare/cargo-wdk-v0.0.0...cargo-wdk-v0.1.0) - 2025-11-06 + +### Added + +- support stampinf version override ([#520](https://github.com/microsoft/windows-drivers-rs/pull/520)) +- add color to cargo wdk and cargo make argument forwarding ([#519](https://github.com/microsoft/windows-drivers-rs/pull/519)) +- enhance cargo metadata parsing to respect config.toml ([#451](https://github.com/microsoft/windows-drivers-rs/pull/451)) +- add `cargo-wdk` cargo extension ([#306](https://github.com/microsoft/windows-drivers-rs/pull/306)) + +### Fixed + +- remove `--cwd` arg from `cargo-wdk` ([#437](https://github.com/microsoft/windows-drivers-rs/pull/437)) +- remove from `NewArgs::driver_type()` the unnecessary check based on `usize` casts ([#421](https://github.com/microsoft/windows-drivers-rs/pull/421)) +- remove cdylib test exclusion from Cargo.toml files ([#379](https://github.com/microsoft/windows-drivers-rs/pull/379)) + +### Other + +- revert cargo-wdk to 0.0.0 +- Prepare cargo-wdk for release ([#560](https://github.com/microsoft/windows-drivers-rs/pull/560)) +- [**breaking**] bump to Rust 2024 Edition ([#430](https://github.com/microsoft/windows-drivers-rs/pull/430)) +- Bump proc-macro2 from 1.0.94 to 1.0.101 in /crates/cargo-wdk/tests/kmdf-driver ([#530](https://github.com/microsoft/windows-drivers-rs/pull/530)) +- Bump proc-macro2 from 1.0.94 to 1.0.101 in /crates/cargo-wdk/tests/wdm-driver ([#532](https://github.com/microsoft/windows-drivers-rs/pull/532)) +- Bump proc-macro2 from 1.0.94 to 1.0.101 in /crates/cargo-wdk/tests/umdf-driver ([#531](https://github.com/microsoft/windows-drivers-rs/pull/531)) +- Bump syn from 2.0.100 to 2.0.106 in /crates/cargo-wdk/tests/kmdf-driver ([#472](https://github.com/microsoft/windows-drivers-rs/pull/472)) +- Bump syn from 2.0.100 to 2.0.106 in /crates/cargo-wdk/tests/wdm-driver ([#474](https://github.com/microsoft/windows-drivers-rs/pull/474)) +- Bump syn from 2.0.100 to 2.0.106 in /crates/cargo-wdk/tests/umdf-driver ([#469](https://github.com/microsoft/windows-drivers-rs/pull/469)) +- Bump cfg-if from 1.0.0 to 1.0.3 in /crates/cargo-wdk/tests/umdf-driver ([#475](https://github.com/microsoft/windows-drivers-rs/pull/475)) +- Bump cfg-if from 1.0.0 to 1.0.3 in /crates/cargo-wdk/tests/wdm-driver ([#470](https://github.com/microsoft/windows-drivers-rs/pull/470)) +- Bump cfg-if from 1.0.0 to 1.0.3 in /crates/cargo-wdk/tests/kmdf-driver ([#465](https://github.com/microsoft/windows-drivers-rs/pull/465)) +- Bump cc from 1.2.17 to 1.2.39 in /crates/cargo-wdk/tests/umdf-driver ([#523](https://github.com/microsoft/windows-drivers-rs/pull/523)) +- Bump cc from 1.2.17 to 1.2.39 in /crates/cargo-wdk/tests/kmdf-driver ([#522](https://github.com/microsoft/windows-drivers-rs/pull/522)) +- Bump cc from 1.2.17 to 1.2.39 in /crates/cargo-wdk/tests/wdm-driver ([#524](https://github.com/microsoft/windows-drivers-rs/pull/524)) +- improve logging for build action ([#495](https://github.com/microsoft/windows-drivers-rs/pull/495)) +- use `std::path::absolute` instead of canonicalize + strip_extended_path_prefix ([#462](https://github.com/microsoft/windows-drivers-rs/pull/462)) +- Bump tracing-subscriber from 0.3.19 to 0.3.20 ([#492](https://github.com/microsoft/windows-drivers-rs/pull/492)) +- enforce typo checking ([#452](https://github.com/microsoft/windows-drivers-rs/pull/452)) +- change categories in cargo-wdk to known slugs ([#441](https://github.com/microsoft/windows-drivers-rs/pull/441)) +- update crate references for consistency in documentation ([#440](https://github.com/microsoft/windows-drivers-rs/pull/440)) +- improve cargo-wdk tests ([#429](https://github.com/microsoft/windows-drivers-rs/pull/429)) +- update dependencies to avoid double windows-sys dependency ([#393](https://github.com/microsoft/windows-drivers-rs/pull/393)) +- fix invalid argument in cargo-wdk command in README.md ([#377](https://github.com/microsoft/windows-drivers-rs/pull/377)) diff --git a/crates/cargo-wdk/Cargo.toml b/crates/cargo-wdk/Cargo.toml index aecd47d25..f178fe3f8 100644 --- a/crates/cargo-wdk/Cargo.toml +++ b/crates/cargo-wdk/Cargo.toml @@ -1,7 +1,7 @@ [package] edition.workspace = true name = "cargo-wdk" -version = "0.0.0" +version = "0.1.0" authors = ["Microsoft"] description = "A Cargo extension for building Windows drivers using the Windows Driver Kit (WDK)" repository.workspace = true From c95bd4331ff56f0eb2230eaca43551896fd41b4b Mon Sep 17 00:00:00 2001 From: Melvin Wang Date: Thu, 6 Nov 2025 15:50:50 -0800 Subject: [PATCH 08/15] Apply suggestions from code review Signed-off-by: Melvin Wang --- crates/wdk-alloc/CHANGELOG.md | 80 ++++++++++----------- crates/wdk-macros/CHANGELOG.md | 125 ++++++++++++++++----------------- 2 files changed, 100 insertions(+), 105 deletions(-) diff --git a/crates/wdk-alloc/CHANGELOG.md b/crates/wdk-alloc/CHANGELOG.md index 936eb30a9..598bd7090 100644 --- a/crates/wdk-alloc/CHANGELOG.md +++ b/crates/wdk-alloc/CHANGELOG.md @@ -1,45 +1,41 @@ -# 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.4.0](https://github.com/microsoft/windows-drivers-rs/compare/wdk-alloc-v0.3.1...wdk-alloc-v0.4.0) - 2025-11-06 - -### Added - -- add `cargo-wdk` cargo extension ([#306](https://github.com/microsoft/windows-drivers-rs/pull/306)) - -### Other - -- [**breaking**] bump to Rust 2024 Edition ([#430](https://github.com/microsoft/windows-drivers-rs/pull/430)) -- enforce typo checking ([#452](https://github.com/microsoft/windows-drivers-rs/pull/452)) - -## [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 - -- configure WDK configuration via parsing Cargo manifest metadata ([#186](https://github.com/microsoft/windows-drivers-rs/pull/186)) - -### Fixed - -- typos in Getting Started section of README.md ([#213](https://github.com/microsoft/windows-drivers-rs/pull/213)) -- [**breaking**] prevent linking of wdk libraries in tests that depend on `wdk-sys` ([#118](https://github.com/microsoft/windows-drivers-rs/pull/118)) - -### Other - -- Update README.md ([#180](https://github.com/microsoft/windows-drivers-rs/pull/180)) -- update readme to call out bugged LLVM 18 versions ([#169](https://github.com/microsoft/windows-drivers-rs/pull/169)) -- use a standardized workspace lint table ([#134](https://github.com/microsoft/windows-drivers-rs/pull/134)) -- 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)) +# 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.4.0](https://github.com/microsoft/windows-drivers-rs/compare/wdk-alloc-v0.3.1...wdk-alloc-v0.4.0) - 2025-11-06 + +### Other + +- [**breaking**] bump to Rust 2024 Edition ([#430](https://github.com/microsoft/windows-drivers-rs/pull/430)) +- enforce typo checking ([#452](https://github.com/microsoft/windows-drivers-rs/pull/452)) + +## [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 + +- configure WDK configuration via parsing Cargo manifest metadata ([#186](https://github.com/microsoft/windows-drivers-rs/pull/186)) + +### Fixed + +- typos in Getting Started section of README.md ([#213](https://github.com/microsoft/windows-drivers-rs/pull/213)) +- [**breaking**] prevent linking of wdk libraries in tests that depend on `wdk-sys` ([#118](https://github.com/microsoft/windows-drivers-rs/pull/118)) + +### Other + +- Update README.md ([#180](https://github.com/microsoft/windows-drivers-rs/pull/180)) +- update readme to call out bugged LLVM 18 versions ([#169](https://github.com/microsoft/windows-drivers-rs/pull/169)) +- use a standardized workspace lint table ([#134](https://github.com/microsoft/windows-drivers-rs/pull/134)) +- 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)) # Changelog All notable changes to this project will be documented in this file. diff --git a/crates/wdk-macros/CHANGELOG.md b/crates/wdk-macros/CHANGELOG.md index 422c47b38..7eebe76e2 100644 --- a/crates/wdk-macros/CHANGELOG.md +++ b/crates/wdk-macros/CHANGELOG.md @@ -1,66 +1,65 @@ -# 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.5.0](https://github.com/microsoft/windows-drivers-rs/compare/wdk-macros-v0.4.0...wdk-macros-v0.5.0) - 2025-11-06 - -### Added - -- add `cargo-wdk` cargo extension ([#306](https://github.com/microsoft/windows-drivers-rs/pull/306)) - -### Other - -- [**breaking**] bump to Rust 2024 Edition ([#430](https://github.com/microsoft/windows-drivers-rs/pull/430)) -- enforce typo checking ([#452](https://github.com/microsoft/windows-drivers-rs/pull/452)) -- update crate references for consistency in documentation ([#440](https://github.com/microsoft/windows-drivers-rs/pull/440)) - -## [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 - -- configure WDK configuration via parsing Cargo manifest metadata ([#186](https://github.com/microsoft/windows-drivers-rs/pull/186)) - -### Fixed - -- typos in Getting Started section of README.md ([#213](https://github.com/microsoft/windows-drivers-rs/pull/213)) -- prevent unused import warning in arguments to `call_unsafe_wdf_function_binding` ([#207](https://github.com/microsoft/windows-drivers-rs/pull/207)) -- prevent `E0530 function parameters cannot shadow tuple structs` error when using `call_unsafe_wdf_function_binding` ([#200](https://github.com/microsoft/windows-drivers-rs/pull/200)) -- only emit must_use hint when wdf function has return type ([#122](https://github.com/microsoft/windows-drivers-rs/pull/122)) -- [**breaking**] prevent linking of wdk libraries in tests that depend on `wdk-sys` ([#118](https://github.com/microsoft/windows-drivers-rs/pull/118)) - -### Other - -- Improve doc comments to comply with `too_long_first_doc_paragraph` clippy lint ([#202](https://github.com/microsoft/windows-drivers-rs/pull/202)) -- Update README.md ([#180](https://github.com/microsoft/windows-drivers-rs/pull/180)) -- update readme to call out bugged LLVM 18 versions ([#169](https://github.com/microsoft/windows-drivers-rs/pull/169)) -- Bump paste from 1.0.14 to 1.0.15 ([#152](https://github.com/microsoft/windows-drivers-rs/pull/152)) -- Bump proc-macro2 from 1.0.81 to 1.0.82 ([#151](https://github.com/microsoft/windows-drivers-rs/pull/151)) -- Bump rustversion from 1.0.14 to 1.0.15 ([#145](https://github.com/microsoft/windows-drivers-rs/pull/145)) -- Bump macrotest from 1.0.11 to 1.0.12 ([#146](https://github.com/microsoft/windows-drivers-rs/pull/146)) -- Bump proc-macro2 from 1.0.78 to 1.0.81 ([#147](https://github.com/microsoft/windows-drivers-rs/pull/147)) -- Bump trybuild from 1.0.89 to 1.0.91 ([#148](https://github.com/microsoft/windows-drivers-rs/pull/148)) -- use a standardized workspace lint table ([#134](https://github.com/microsoft/windows-drivers-rs/pull/134)) -- Bump syn from 2.0.48 to 2.0.58 ([#135](https://github.com/microsoft/windows-drivers-rs/pull/135)) -- 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)) +# 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.5.0](https://github.com/microsoft/windows-drivers-rs/compare/wdk-macros-v0.4.0...wdk-macros-v0.5.0) - 2025-11-06 + +### Added + + +### Other + +- [**breaking**] bump to Rust 2024 Edition ([#430](https://github.com/microsoft/windows-drivers-rs/pull/430)) +- enforce typo checking ([#452](https://github.com/microsoft/windows-drivers-rs/pull/452)) +- update crate references for consistency in documentation ([#440](https://github.com/microsoft/windows-drivers-rs/pull/440)) + +## [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 + +- configure WDK configuration via parsing Cargo manifest metadata ([#186](https://github.com/microsoft/windows-drivers-rs/pull/186)) + +### Fixed + +- typos in Getting Started section of README.md ([#213](https://github.com/microsoft/windows-drivers-rs/pull/213)) +- prevent unused import warning in arguments to `call_unsafe_wdf_function_binding` ([#207](https://github.com/microsoft/windows-drivers-rs/pull/207)) +- prevent `E0530 function parameters cannot shadow tuple structs` error when using `call_unsafe_wdf_function_binding` ([#200](https://github.com/microsoft/windows-drivers-rs/pull/200)) +- only emit must_use hint when wdf function has return type ([#122](https://github.com/microsoft/windows-drivers-rs/pull/122)) +- [**breaking**] prevent linking of wdk libraries in tests that depend on `wdk-sys` ([#118](https://github.com/microsoft/windows-drivers-rs/pull/118)) + +### Other + +- Improve doc comments to comply with `too_long_first_doc_paragraph` clippy lint ([#202](https://github.com/microsoft/windows-drivers-rs/pull/202)) +- Update README.md ([#180](https://github.com/microsoft/windows-drivers-rs/pull/180)) +- update readme to call out bugged LLVM 18 versions ([#169](https://github.com/microsoft/windows-drivers-rs/pull/169)) +- Bump paste from 1.0.14 to 1.0.15 ([#152](https://github.com/microsoft/windows-drivers-rs/pull/152)) +- Bump proc-macro2 from 1.0.81 to 1.0.82 ([#151](https://github.com/microsoft/windows-drivers-rs/pull/151)) +- Bump rustversion from 1.0.14 to 1.0.15 ([#145](https://github.com/microsoft/windows-drivers-rs/pull/145)) +- Bump macrotest from 1.0.11 to 1.0.12 ([#146](https://github.com/microsoft/windows-drivers-rs/pull/146)) +- Bump proc-macro2 from 1.0.78 to 1.0.81 ([#147](https://github.com/microsoft/windows-drivers-rs/pull/147)) +- Bump trybuild from 1.0.89 to 1.0.91 ([#148](https://github.com/microsoft/windows-drivers-rs/pull/148)) +- use a standardized workspace lint table ([#134](https://github.com/microsoft/windows-drivers-rs/pull/134)) +- Bump syn from 2.0.48 to 2.0.58 ([#135](https://github.com/microsoft/windows-drivers-rs/pull/135)) +- 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)) # Changelog All notable changes to this project will be documented in this file. From 1db2a7b0838c78f86ef58860635d54764961fd38 Mon Sep 17 00:00:00 2001 From: Melvin Wang Date: Thu, 6 Nov 2025 15:51:31 -0800 Subject: [PATCH 09/15] Apply suggestion from @wmmc88 Signed-off-by: Melvin Wang --- crates/wdk-macros/CHANGELOG.md | 3 --- 1 file changed, 3 deletions(-) diff --git a/crates/wdk-macros/CHANGELOG.md b/crates/wdk-macros/CHANGELOG.md index 7eebe76e2..12c5a200f 100644 --- a/crates/wdk-macros/CHANGELOG.md +++ b/crates/wdk-macros/CHANGELOG.md @@ -7,9 +7,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [0.5.0](https://github.com/microsoft/windows-drivers-rs/compare/wdk-macros-v0.4.0...wdk-macros-v0.5.0) - 2025-11-06 -### Added - - ### Other - [**breaking**] bump to Rust 2024 Edition ([#430](https://github.com/microsoft/windows-drivers-rs/pull/430)) From 2426f398ea0785f6c224d34b41a0dafd8c372176 Mon Sep 17 00:00:00 2001 From: Melvin Wang Date: Thu, 6 Nov 2025 15:51:48 -0800 Subject: [PATCH 10/15] Apply suggestion from @wmmc88 Signed-off-by: Melvin Wang --- crates/wdk/CHANGELOG.md | 89 ++++++++++++++++++++--------------------- 1 file changed, 44 insertions(+), 45 deletions(-) diff --git a/crates/wdk/CHANGELOG.md b/crates/wdk/CHANGELOG.md index cf3172af6..5dd307dda 100644 --- a/crates/wdk/CHANGELOG.md +++ b/crates/wdk/CHANGELOG.md @@ -1,48 +1,47 @@ -# 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.4.0](https://github.com/microsoft/windows-drivers-rs/compare/wdk-v0.3.1...wdk-v0.4.0) - 2025-11-06 - -### Added - -- add `cargo-wdk` cargo extension ([#306](https://github.com/microsoft/windows-drivers-rs/pull/306)) - -### Other - -- [**breaking**] bump to Rust 2024 Edition ([#430](https://github.com/microsoft/windows-drivers-rs/pull/430)) -- enforce typo checking ([#452](https://github.com/microsoft/windows-drivers-rs/pull/452)) -- update crate references for consistency in documentation ([#440](https://github.com/microsoft/windows-drivers-rs/pull/440)) - -## [0.3.1](https://github.com/microsoft/windows-drivers-rs/compare/wdk-v0.3.0...wdk-v0.3.1) - 2025-04-18 - -### Other - -- Use stack-based formatter for debug-printing. ([#233](https://github.com/microsoft/windows-drivers-rs/pull/233)) -- 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-v0.2.0...wdk-v0.3.0) - 2024-09-27 - -### Added - -- configure WDK configuration via parsing Cargo manifest metadata ([#186](https://github.com/microsoft/windows-drivers-rs/pull/186)) - -### Fixed - -- typos in Getting Started section of README.md ([#213](https://github.com/microsoft/windows-drivers-rs/pull/213)) -- only emit must_use hint when wdf function has return type ([#122](https://github.com/microsoft/windows-drivers-rs/pull/122)) -- [**breaking**] prevent linking of wdk libraries in tests that depend on `wdk-sys` ([#118](https://github.com/microsoft/windows-drivers-rs/pull/118)) - -### Other - -- Update README.md ([#180](https://github.com/microsoft/windows-drivers-rs/pull/180)) -- update readme to call out bugged LLVM 18 versions ([#169](https://github.com/microsoft/windows-drivers-rs/pull/169)) -- use a standardized workspace lint table ([#134](https://github.com/microsoft/windows-drivers-rs/pull/134)) -- 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)) +# 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.4.0](https://github.com/microsoft/windows-drivers-rs/compare/wdk-v0.3.1...wdk-v0.4.0) - 2025-11-06 + +### Added + + +### Other + +- [**breaking**] bump to Rust 2024 Edition ([#430](https://github.com/microsoft/windows-drivers-rs/pull/430)) +- enforce typo checking ([#452](https://github.com/microsoft/windows-drivers-rs/pull/452)) +- update crate references for consistency in documentation ([#440](https://github.com/microsoft/windows-drivers-rs/pull/440)) + +## [0.3.1](https://github.com/microsoft/windows-drivers-rs/compare/wdk-v0.3.0...wdk-v0.3.1) - 2025-04-18 + +### Other + +- Use stack-based formatter for debug-printing. ([#233](https://github.com/microsoft/windows-drivers-rs/pull/233)) +- 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-v0.2.0...wdk-v0.3.0) - 2024-09-27 + +### Added + +- configure WDK configuration via parsing Cargo manifest metadata ([#186](https://github.com/microsoft/windows-drivers-rs/pull/186)) + +### Fixed + +- typos in Getting Started section of README.md ([#213](https://github.com/microsoft/windows-drivers-rs/pull/213)) +- only emit must_use hint when wdf function has return type ([#122](https://github.com/microsoft/windows-drivers-rs/pull/122)) +- [**breaking**] prevent linking of wdk libraries in tests that depend on `wdk-sys` ([#118](https://github.com/microsoft/windows-drivers-rs/pull/118)) + +### Other + +- Update README.md ([#180](https://github.com/microsoft/windows-drivers-rs/pull/180)) +- update readme to call out bugged LLVM 18 versions ([#169](https://github.com/microsoft/windows-drivers-rs/pull/169)) +- use a standardized workspace lint table ([#134](https://github.com/microsoft/windows-drivers-rs/pull/134)) +- 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)) # Changelog All notable changes to this project will be documented in this file. From 74d485417135efe137ad9fb0a490569bb31cdb76 Mon Sep 17 00:00:00 2001 From: Melvin Wang Date: Thu, 6 Nov 2025 15:52:14 -0800 Subject: [PATCH 11/15] Apply suggestion from @wmmc88 Signed-off-by: Melvin Wang --- crates/wdk/CHANGELOG.md | 3 --- 1 file changed, 3 deletions(-) diff --git a/crates/wdk/CHANGELOG.md b/crates/wdk/CHANGELOG.md index 5dd307dda..236e60b4c 100644 --- a/crates/wdk/CHANGELOG.md +++ b/crates/wdk/CHANGELOG.md @@ -7,9 +7,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [0.4.0](https://github.com/microsoft/windows-drivers-rs/compare/wdk-v0.3.1...wdk-v0.4.0) - 2025-11-06 -### Added - - ### Other - [**breaking**] bump to Rust 2024 Edition ([#430](https://github.com/microsoft/windows-drivers-rs/pull/430)) From 6c5a7c28246992cff11ce6962b0e01c909d469de Mon Sep 17 00:00:00 2001 From: Melvin Wang Date: Thu, 6 Nov 2025 16:00:03 -0800 Subject: [PATCH 12/15] Apply suggestion from @wmmc88 Signed-off-by: Melvin Wang --- crates/wdk-build/CHANGELOG.md | 53 +++++++++++++++++------------------ 1 file changed, 26 insertions(+), 27 deletions(-) diff --git a/crates/wdk-build/CHANGELOG.md b/crates/wdk-build/CHANGELOG.md index dfe841d22..174a9e30a 100644 --- a/crates/wdk-build/CHANGELOG.md +++ b/crates/wdk-build/CHANGELOG.md @@ -5,33 +5,32 @@ 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.5.0](https://github.com/microsoft/windows-drivers-rs/compare/wdk-build-v0.4.0...wdk-build-v0.5.0) - 2025-11-06 - -### Added - -- enhance error handling with IoError and IoErrorMetadata for improved std::io::Error diagnostics for fs errors ([#480](https://github.com/microsoft/windows-drivers-rs/pull/480)) -- add color to cargo wdk and cargo make argument forwarding ([#519](https://github.com/microsoft/windows-drivers-rs/pull/519)) -- enhance debug tracing in bindgen and config modules ([#455](https://github.com/microsoft/windows-drivers-rs/pull/455)) -- enhance cargo metadata parsing to respect config.toml ([#451](https://github.com/microsoft/windows-drivers-rs/pull/451)) -- *(ci)* install and use `nuget` packages in CI workflows ([#406](https://github.com/microsoft/windows-drivers-rs/pull/406)) -- add `cargo-wdk` cargo extension ([#306](https://github.com/microsoft/windows-drivers-rs/pull/306)) -- make `emit_check_cfg_settings` function public ([#352](https://github.com/microsoft/windows-drivers-rs/pull/352)) - -### Fixed - -- use latest version of ucx in the WDKContent as default ([#411](https://github.com/microsoft/windows-drivers-rs/pull/411)) -- improve error reporting when no wdk-build package is found ([#339](https://github.com/microsoft/windows-drivers-rs/pull/339)) - -### Other - -- Prepare cargo-wdk for release ([#560](https://github.com/microsoft/windows-drivers-rs/pull/560)) -- [**breaking**] bump to Rust 2024 Edition ([#430](https://github.com/microsoft/windows-drivers-rs/pull/430)) -- use `std::path::absolute` instead of canonicalize + strip_extended_path_prefix ([#462](https://github.com/microsoft/windows-drivers-rs/pull/462)) -- Bump tracing-subscriber from 0.3.19 to 0.3.20 ([#492](https://github.com/microsoft/windows-drivers-rs/pull/492)) -- enforce typo checking ([#452](https://github.com/microsoft/windows-drivers-rs/pull/452)) -- update crate references for consistency in documentation ([#440](https://github.com/microsoft/windows-drivers-rs/pull/440)) -- improve cargo-wdk tests ([#429](https://github.com/microsoft/windows-drivers-rs/pull/429)) - +## [0.5.0](https://github.com/microsoft/windows-drivers-rs/compare/wdk-build-v0.4.0...wdk-build-v0.5.0) - 2025-11-06 + +### Added + +- enhance error handling with IoError and IoErrorMetadata for improved std::io::Error diagnostics for fs errors ([#480](https://github.com/microsoft/windows-drivers-rs/pull/480)) +- add color to cargo wdk and cargo make argument forwarding ([#519](https://github.com/microsoft/windows-drivers-rs/pull/519)) +- enhance debug tracing in bindgen and config modules ([#455](https://github.com/microsoft/windows-drivers-rs/pull/455)) +- enhance cargo metadata parsing to respect config.toml ([#451](https://github.com/microsoft/windows-drivers-rs/pull/451)) +- *(ci)* install and use `nuget` packages in CI workflows ([#406](https://github.com/microsoft/windows-drivers-rs/pull/406)) +- make `emit_check_cfg_settings` function public ([#352](https://github.com/microsoft/windows-drivers-rs/pull/352)) + +### Fixed + +- use latest version of ucx in the WDKContent as default ([#411](https://github.com/microsoft/windows-drivers-rs/pull/411)) +- improve error reporting when no wdk-build package is found ([#339](https://github.com/microsoft/windows-drivers-rs/pull/339)) + +### Other + +- Prepare cargo-wdk for release ([#560](https://github.com/microsoft/windows-drivers-rs/pull/560)) +- [**breaking**] bump to Rust 2024 Edition ([#430](https://github.com/microsoft/windows-drivers-rs/pull/430)) +- use `std::path::absolute` instead of canonicalize + strip_extended_path_prefix ([#462](https://github.com/microsoft/windows-drivers-rs/pull/462)) +- Bump tracing-subscriber from 0.3.19 to 0.3.20 ([#492](https://github.com/microsoft/windows-drivers-rs/pull/492)) +- enforce typo checking ([#452](https://github.com/microsoft/windows-drivers-rs/pull/452)) +- update crate references for consistency in documentation ([#440](https://github.com/microsoft/windows-drivers-rs/pull/440)) +- improve cargo-wdk tests ([#429](https://github.com/microsoft/windows-drivers-rs/pull/429)) + ## [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 From 5a8ddb86a42cfb3f754040a39e1dc8829316b39e Mon Sep 17 00:00:00 2001 From: Melvin Wang Date: Thu, 6 Nov 2025 16:00:23 -0800 Subject: [PATCH 13/15] Apply suggestion from @wmmc88 Signed-off-by: Melvin Wang --- crates/wdk-sys/CHANGELOG.md | 37 ++++++++++++++++++------------------- 1 file changed, 18 insertions(+), 19 deletions(-) diff --git a/crates/wdk-sys/CHANGELOG.md b/crates/wdk-sys/CHANGELOG.md index 4d13fdd6a..ead1fb45e 100644 --- a/crates/wdk-sys/CHANGELOG.md +++ b/crates/wdk-sys/CHANGELOG.md @@ -5,25 +5,24 @@ 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.5.0](https://github.com/microsoft/windows-drivers-rs/compare/wdk-sys-v0.4.0...wdk-sys-v0.5.0) - 2025-11-06 - -### Added - -- enhance error handling with IoError and IoErrorMetadata for improved std::io::Error diagnostics for fs errors ([#480](https://github.com/microsoft/windows-drivers-rs/pull/480)) -- add `cargo-wdk` cargo extension ([#306](https://github.com/microsoft/windows-drivers-rs/pull/306)) - -### Fixed - -- use latest version of ucx in the WDKContent as default ([#411](https://github.com/microsoft/windows-drivers-rs/pull/411)) -- allow unnecessary_transmutes lint for bindgen-generated types.rs ([#350](https://github.com/microsoft/windows-drivers-rs/pull/350)) - -### Other - -- [**breaking**] bump to Rust 2024 Edition ([#430](https://github.com/microsoft/windows-drivers-rs/pull/430)) -- improve logging for build action ([#495](https://github.com/microsoft/windows-drivers-rs/pull/495)) -- enforce typo checking ([#452](https://github.com/microsoft/windows-drivers-rs/pull/452)) -- Add stubs for __CxxFrameHandler4 and __GSHandlerCheck_EH4 ([#438](https://github.com/microsoft/windows-drivers-rs/pull/438)) - +## [0.5.0](https://github.com/microsoft/windows-drivers-rs/compare/wdk-sys-v0.4.0...wdk-sys-v0.5.0) - 2025-11-06 + +### Added + +- enhance error handling with IoError and IoErrorMetadata for improved std::io::Error diagnostics for fs errors ([#480](https://github.com/microsoft/windows-drivers-rs/pull/480)) + +### Fixed + +- use latest version of ucx in the WDKContent as default ([#411](https://github.com/microsoft/windows-drivers-rs/pull/411)) +- allow unnecessary_transmutes lint for bindgen-generated types.rs ([#350](https://github.com/microsoft/windows-drivers-rs/pull/350)) + +### Other + +- [**breaking**] bump to Rust 2024 Edition ([#430](https://github.com/microsoft/windows-drivers-rs/pull/430)) +- improve logging for build action ([#495](https://github.com/microsoft/windows-drivers-rs/pull/495)) +- enforce typo checking ([#452](https://github.com/microsoft/windows-drivers-rs/pull/452)) +- Add stubs for __CxxFrameHandler4 and __GSHandlerCheck_EH4 ([#438](https://github.com/microsoft/windows-drivers-rs/pull/438)) + ## [0.4.0](https://github.com/microsoft/windows-drivers-rs/compare/wdk-sys-v0.3.0...wdk-sys-v0.4.0) - 2025-04-18 ### Added From 32db8ef4cce245c2a8197863b9b8a608818233eb Mon Sep 17 00:00:00 2001 From: Melvin Wang Date: Thu, 6 Nov 2025 16:01:45 -0800 Subject: [PATCH 14/15] Apply suggestion from @wmmc88 Signed-off-by: Melvin Wang --- crates/cargo-wdk/CHANGELOG.md | 1 - 1 file changed, 1 deletion(-) diff --git a/crates/cargo-wdk/CHANGELOG.md b/crates/cargo-wdk/CHANGELOG.md index 6dfd655b6..5cbb24160 100644 --- a/crates/cargo-wdk/CHANGELOG.md +++ b/crates/cargo-wdk/CHANGELOG.md @@ -22,7 +22,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Other -- revert cargo-wdk to 0.0.0 - Prepare cargo-wdk for release ([#560](https://github.com/microsoft/windows-drivers-rs/pull/560)) - [**breaking**] bump to Rust 2024 Edition ([#430](https://github.com/microsoft/windows-drivers-rs/pull/430)) - Bump proc-macro2 from 1.0.94 to 1.0.101 in /crates/cargo-wdk/tests/kmdf-driver ([#530](https://github.com/microsoft/windows-drivers-rs/pull/530)) From 738c975d7db6caf2bcdb3481e1aa8eb9d9586e57 Mon Sep 17 00:00:00 2001 From: Melvin Wang Date: Fri, 7 Nov 2025 16:34:39 -0800 Subject: [PATCH 15/15] chore(deps): bump wdk crates in test lockfiles and update VSCode linkedProjects MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Bump wdk-related crates in test Cargo.lock files: - wdk 0.3.1 → 0.4.0 - wdk-alloc 0.3.1 → 0.4.0 - wdk-build 0.4.0 → 0.5.0 - wdk-macros 0.4.0 → 0.5.0 - wdk-panic 0.3.1 → 0.4.0 - wdk-sys 0.4.0 → 0.5.0 (updated in crates/cargo-wdk/tests/*/Cargo.lock) - Reorder/adjust rust-analyzer.linkedProjects in .vscode/settings.json to include emulated-workspace test manifests earlier. --- .vscode/settings.json | 6 ++++++ .../umdf-driver-workspace/Cargo.lock | 8 ++++---- crates/cargo-wdk/tests/kmdf-driver/Cargo.lock | 10 +++++----- .../tests/mixed-package-kmdf-workspace/Cargo.lock | 12 ++++++------ crates/cargo-wdk/tests/umdf-driver/Cargo.lock | 8 ++++---- crates/cargo-wdk/tests/wdm-driver/Cargo.lock | 10 +++++----- 6 files changed, 30 insertions(+), 24 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index fa9e9b637..54ded3a83 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -10,6 +10,12 @@ }, "rust-analyzer.linkedProjects": [ "./Cargo.toml", + "./crates/cargo-wdk/tests/emulated-workspace/rust-project/Cargo.toml", + "./crates/cargo-wdk/tests/emulated-workspace/umdf-driver-workspace/Cargo.toml", + "./crates/cargo-wdk/tests/kmdf-driver/Cargo.toml", + "./crates/cargo-wdk/tests/mixed-package-kmdf-workspace/Cargo.toml", + "./crates/cargo-wdk/tests/umdf-driver/Cargo.toml", + "./crates/cargo-wdk/tests/wdm-driver/Cargo.toml", "./examples/sample-kmdf-driver/Cargo.toml", "./examples/sample-umdf-driver/Cargo.toml", "./examples/sample-wdm-driver/Cargo.toml", diff --git a/crates/cargo-wdk/tests/emulated-workspace/umdf-driver-workspace/Cargo.lock b/crates/cargo-wdk/tests/emulated-workspace/umdf-driver-workspace/Cargo.lock index f09928cc1..560b484ac 100644 --- a/crates/cargo-wdk/tests/emulated-workspace/umdf-driver-workspace/Cargo.lock +++ b/crates/cargo-wdk/tests/emulated-workspace/umdf-driver-workspace/Cargo.lock @@ -682,7 +682,7 @@ checksum = "830b7e5d4d90034032940e4ace0d9a9a057e7a45cd94e6c007832e39edb82f6d" [[package]] name = "wdk" -version = "0.3.1" +version = "0.4.0" dependencies = [ "cfg-if", "tracing", @@ -693,7 +693,7 @@ dependencies = [ [[package]] name = "wdk-build" -version = "0.4.0" +version = "0.5.0" dependencies = [ "anyhow", "bindgen", @@ -715,7 +715,7 @@ dependencies = [ [[package]] name = "wdk-macros" -version = "0.4.0" +version = "0.5.0" dependencies = [ "cfg-if", "fs4", @@ -730,7 +730,7 @@ dependencies = [ [[package]] name = "wdk-sys" -version = "0.4.0" +version = "0.5.0" dependencies = [ "anyhow", "bindgen", diff --git a/crates/cargo-wdk/tests/kmdf-driver/Cargo.lock b/crates/cargo-wdk/tests/kmdf-driver/Cargo.lock index b1d35eb4b..ff6ba913b 100644 --- a/crates/cargo-wdk/tests/kmdf-driver/Cargo.lock +++ b/crates/cargo-wdk/tests/kmdf-driver/Cargo.lock @@ -668,7 +668,7 @@ checksum = "ba73ea9cf16a25df0c8caa16c51acb937d5712a8429db78a3ee29d5dcacd3a65" [[package]] name = "wdk-alloc" -version = "0.3.1" +version = "0.4.0" dependencies = [ "tracing", "tracing-subscriber", @@ -678,7 +678,7 @@ dependencies = [ [[package]] name = "wdk-build" -version = "0.4.0" +version = "0.5.0" dependencies = [ "anyhow", "bindgen", @@ -700,7 +700,7 @@ dependencies = [ [[package]] name = "wdk-macros" -version = "0.4.0" +version = "0.5.0" dependencies = [ "cfg-if", "fs4", @@ -715,11 +715,11 @@ dependencies = [ [[package]] name = "wdk-panic" -version = "0.3.1" +version = "0.4.0" [[package]] name = "wdk-sys" -version = "0.4.0" +version = "0.5.0" dependencies = [ "anyhow", "bindgen", diff --git a/crates/cargo-wdk/tests/mixed-package-kmdf-workspace/Cargo.lock b/crates/cargo-wdk/tests/mixed-package-kmdf-workspace/Cargo.lock index c013ff186..d7ac37a88 100644 --- a/crates/cargo-wdk/tests/mixed-package-kmdf-workspace/Cargo.lock +++ b/crates/cargo-wdk/tests/mixed-package-kmdf-workspace/Cargo.lock @@ -679,7 +679,7 @@ checksum = "830b7e5d4d90034032940e4ace0d9a9a057e7a45cd94e6c007832e39edb82f6d" [[package]] name = "wdk" -version = "0.3.1" +version = "0.4.0" dependencies = [ "cfg-if", "tracing", @@ -690,7 +690,7 @@ dependencies = [ [[package]] name = "wdk-alloc" -version = "0.3.1" +version = "0.4.0" dependencies = [ "tracing", "tracing-subscriber", @@ -700,7 +700,7 @@ dependencies = [ [[package]] name = "wdk-build" -version = "0.4.0" +version = "0.5.0" dependencies = [ "anyhow", "bindgen", @@ -722,7 +722,7 @@ dependencies = [ [[package]] name = "wdk-macros" -version = "0.4.0" +version = "0.5.0" dependencies = [ "cfg-if", "fs4", @@ -737,11 +737,11 @@ dependencies = [ [[package]] name = "wdk-panic" -version = "0.3.1" +version = "0.4.0" [[package]] name = "wdk-sys" -version = "0.4.0" +version = "0.5.0" dependencies = [ "anyhow", "bindgen", diff --git a/crates/cargo-wdk/tests/umdf-driver/Cargo.lock b/crates/cargo-wdk/tests/umdf-driver/Cargo.lock index 88b64dbd6..2a879a640 100644 --- a/crates/cargo-wdk/tests/umdf-driver/Cargo.lock +++ b/crates/cargo-wdk/tests/umdf-driver/Cargo.lock @@ -667,7 +667,7 @@ checksum = "ba73ea9cf16a25df0c8caa16c51acb937d5712a8429db78a3ee29d5dcacd3a65" [[package]] name = "wdk" -version = "0.3.1" +version = "0.4.0" dependencies = [ "cfg-if", "tracing", @@ -678,7 +678,7 @@ dependencies = [ [[package]] name = "wdk-build" -version = "0.4.0" +version = "0.5.0" dependencies = [ "anyhow", "bindgen", @@ -700,7 +700,7 @@ dependencies = [ [[package]] name = "wdk-macros" -version = "0.4.0" +version = "0.5.0" dependencies = [ "cfg-if", "fs4", @@ -715,7 +715,7 @@ dependencies = [ [[package]] name = "wdk-sys" -version = "0.4.0" +version = "0.5.0" dependencies = [ "anyhow", "bindgen", diff --git a/crates/cargo-wdk/tests/wdm-driver/Cargo.lock b/crates/cargo-wdk/tests/wdm-driver/Cargo.lock index c4be8ed78..1a76c5dc4 100644 --- a/crates/cargo-wdk/tests/wdm-driver/Cargo.lock +++ b/crates/cargo-wdk/tests/wdm-driver/Cargo.lock @@ -658,7 +658,7 @@ checksum = "ba73ea9cf16a25df0c8caa16c51acb937d5712a8429db78a3ee29d5dcacd3a65" [[package]] name = "wdk-alloc" -version = "0.3.1" +version = "0.4.0" dependencies = [ "tracing", "tracing-subscriber", @@ -668,7 +668,7 @@ dependencies = [ [[package]] name = "wdk-build" -version = "0.4.0" +version = "0.5.0" dependencies = [ "anyhow", "bindgen", @@ -690,7 +690,7 @@ dependencies = [ [[package]] name = "wdk-macros" -version = "0.4.0" +version = "0.5.0" dependencies = [ "cfg-if", "fs4", @@ -705,11 +705,11 @@ dependencies = [ [[package]] name = "wdk-panic" -version = "0.3.1" +version = "0.4.0" [[package]] name = "wdk-sys" -version = "0.4.0" +version = "0.5.0" dependencies = [ "anyhow", "bindgen",