diff --git a/Cargo.lock b/Cargo.lock index 1924bef3b..eba1e2edd 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -688,7 +688,7 @@ checksum = "830b7e5d4d90034032940e4ace0d9a9a057e7a45cd94e6c007832e39edb82f6d" [[package]] name = "wdk" -version = "0.3.0" +version = "0.3.1" dependencies = [ "cfg-if", "tracing", @@ -699,7 +699,7 @@ dependencies = [ [[package]] name = "wdk-alloc" -version = "0.3.0" +version = "0.3.1" dependencies = [ "tracing", "tracing-subscriber", @@ -709,7 +709,7 @@ dependencies = [ [[package]] name = "wdk-build" -version = "0.3.0" +version = "0.4.0" dependencies = [ "anyhow", "bindgen", @@ -730,7 +730,7 @@ dependencies = [ [[package]] name = "wdk-macros" -version = "0.3.0" +version = "0.4.0" dependencies = [ "cfg-if", "fs4", @@ -746,11 +746,11 @@ dependencies = [ [[package]] name = "wdk-panic" -version = "0.3.0" +version = "0.3.1" [[package]] name = "wdk-sys" -version = "0.3.0" +version = "0.4.0" dependencies = [ "anyhow", "bindgen", diff --git a/Cargo.toml b/Cargo.toml index 49f14d717..5bee27958 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -29,12 +29,12 @@ license = "MIT OR Apache-2.0" [workspace.dependencies] # Workspace Crates -wdk = { path = "crates/wdk", version = "0.3.0" } -wdk-alloc = { path = "crates/wdk-alloc", version = "0.3.0" } -wdk-build = { path = "crates/wdk-build", version = "0.3.0" } -wdk-macros = { path = "crates/wdk-macros", version = "0.3.0" } -wdk-panic = { path = "crates/wdk-panic", version = "0.3.0" } -wdk-sys = { path = "crates/wdk-sys", version = "0.3.0" } +wdk = { path = "crates/wdk", version = "0.3.1" } +wdk-alloc = { path = "crates/wdk-alloc", version = "0.3.1" } +wdk-build = { path = "crates/wdk-build", version = "0.4.0" } +wdk-macros = { path = "crates/wdk-macros", version = "0.4.0" } +wdk-panic = { path = "crates/wdk-panic", version = "0.3.1" } +wdk-sys = { path = "crates/wdk-sys", version = "0.4.0" } # External Crates anyhow = "1.0.97" diff --git a/README.md b/README.md index 4c9535e5d..b936e77dd 100644 --- a/README.md +++ b/README.md @@ -147,7 +147,7 @@ The crates in this repository are available from [`crates.io`](https://crates.io #!@rust //! ```cargo //! [dependencies] - //! wdk-build = "0.3.0" + //! wdk-build = "0.4.0" //! ``` #![allow(unused_doc_comments)] diff --git a/crates/wdk-alloc/CHANGELOG.md b/crates/wdk-alloc/CHANGELOG.md index d86a2adec..de3cb9a09 100644 --- a/crates/wdk-alloc/CHANGELOG.md +++ b/crates/wdk-alloc/CHANGELOG.md @@ -5,6 +5,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [0.3.1](https://github.com/microsoft/windows-drivers-rs/compare/wdk-alloc-v0.3.0...wdk-alloc-v0.3.1) - 2025-04-18 + +### Other + +- update README to clarify community engagement and contact methods ([#312](https://github.com/microsoft/windows-drivers-rs/pull/312)) + ## [0.3.0](https://github.com/microsoft/windows-drivers-rs/compare/wdk-alloc-v0.2.0...wdk-alloc-v0.3.0) - 2024-09-27 ### Added diff --git a/crates/wdk-alloc/Cargo.toml b/crates/wdk-alloc/Cargo.toml index 151f80c1e..b29824cd3 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.0" +version = "0.3.1" 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 22e3e7972..daa46b917 100644 --- a/crates/wdk-build/CHANGELOG.md +++ b/crates/wdk-build/CHANGELOG.md @@ -5,6 +5,35 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [0.4.0](https://github.com/microsoft/windows-drivers-rs/compare/wdk-build-v0.3.0...wdk-build-v0.4.0) - 2025-04-18 + +### Added + +- extend coverage in `wdk-sys` to include usb-related headers ([#296](https://github.com/microsoft/windows-drivers-rs/pull/296)) +- expand wdk-sys coverage to include gpio and parallel ports related headers ([#278](https://github.com/microsoft/windows-drivers-rs/pull/278)) +- add support for Storage API subset in `wdk-sys` ([#287](https://github.com/microsoft/windows-drivers-rs/pull/287)) +- expand `wdk-sys` coverage to include spb-related headers ([#263](https://github.com/microsoft/windows-drivers-rs/pull/263)) +- [**breaking**] expand `wdk-sys` coverage to include hid-related headers ([#260](https://github.com/microsoft/windows-drivers-rs/pull/260)) + +### Fixed + +- [**breaking**] specify rust version & edition to wdk-default bindgen::builder ([#314](https://github.com/microsoft/windows-drivers-rs/pull/314)) +- [**breaking**] explicitly mark `_KGDTENTRY64` and `_KIDTENTRY64` as opaque types in `bindgen` ([#277](https://github.com/microsoft/windows-drivers-rs/pull/277)) +- suppress linker warnings exposed by nightly rustc change ([#279](https://github.com/microsoft/windows-drivers-rs/pull/279)) +- add missing arm64rt library to linker flags for arm64 kernel-mode builds ([#261](https://github.com/microsoft/windows-drivers-rs/pull/261)) + +### Other + +- update README to clarify community engagement and contact methods ([#312](https://github.com/microsoft/windows-drivers-rs/pull/312)) +- remove noop `must_use` on trait impl ([#302](https://github.com/microsoft/windows-drivers-rs/pull/302)) +- [**breaking**] Remove lazy static instances ([#250](https://github.com/microsoft/windows-drivers-rs/pull/250)) +- fix panic condition docs for `package_driver_flow_condition_script` ([#264](https://github.com/microsoft/windows-drivers-rs/pull/264)) +- port certificate-generation condition script to Rust ([#259](https://github.com/microsoft/windows-drivers-rs/pull/259)) +- remove redundant code-path in `detect_wdk_content_root` ([#249](https://github.com/microsoft/windows-drivers-rs/pull/249)) +- use `next_back` instead of `last` on double-ended iterators (`clippy::double_ended_iterator_last`) ([#262](https://github.com/microsoft/windows-drivers-rs/pull/262)) +- use `is_none_or` for `clippy::nonminimal_bool` and resolve `clippy::needless_raw_string_hashes` ([#231](https://github.com/microsoft/windows-drivers-rs/pull/231)) +- fix `clippy::nonminimal_bool` and `clippy::ref_option` issues ([#230](https://github.com/microsoft/windows-drivers-rs/pull/230)) + ## [0.3.0](https://github.com/microsoft/windows-drivers-rs/compare/wdk-build-v0.2.0...wdk-build-v0.3.0) - 2024-09-27 ### Added @@ -39,32 +68,32 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - fix `winget` llvm install command option ([#115](https://github.com/microsoft/windows-drivers-rs/pull/115)) - fix various pipeline breakages (nightly rustfmt bug, new nightly clippy lints, upstream winget dependency issue) ([#117](https://github.com/microsoft/windows-drivers-rs/pull/117)) - add lint exceptions for clippy::manual_c_str_literals and clippy::ref_as_ptr ([#108](https://github.com/microsoft/windows-drivers-rs/pull/108)) -# Changelog -All notable changes to this project will be documented in this file. - -The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), -and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). - - -## [0.2.0](https://github/microsoft/windows-drivers-rs/compare/wdk-build-v0.1.0...wdk-build-v0.2.0) - 2024-02-08 - -### Added -- package rust-driver-makefile.toml with wdk-build package ([#36](https://github/microsoft/windows-drivers-rs/pull/36)) -- support multiple drivers (of same type) in same cargo workspace -- cargo-make argument forwarding -- generate CStr for c string constants instead of &[u8] ([#72](https://github/microsoft/windows-drivers-rs/pull/72)) - -### Fixed -- resolve warnings in rust-script blocks and only fail warnings in CI ([#87](https://github/microsoft/windows-drivers-rs/pull/87)) -- add missing cpu-arch macro defintions -- fix wdk path regkey detection - -### Other -- update versions in readme and rust-driver-makefile.toml -- update dependencies -- allow multiple_crate_versions in wdk-build (build dependency) ([#98](https://github/microsoft/windows-drivers-rs/pull/98)) -- update cargo-make tasks with arch-specific tools -- Bump thiserror from 1.0.48 to 1.0.55 ([#59](https://github/microsoft/windows-drivers-rs/pull/59)) -- restrict to one unsafe operation per block ([#24](https://github/microsoft/windows-drivers-rs/pull/24)) -- [**breaking**] enable rustdoc lints and resolve errors -- initial open-source check in +# Changelog +All notable changes to this project will be documented in this file. + +The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), +and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). + + +## [0.2.0](https://github/microsoft/windows-drivers-rs/compare/wdk-build-v0.1.0...wdk-build-v0.2.0) - 2024-02-08 + +### Added +- package rust-driver-makefile.toml with wdk-build package ([#36](https://github/microsoft/windows-drivers-rs/pull/36)) +- support multiple drivers (of same type) in same cargo workspace +- cargo-make argument forwarding +- generate CStr for c string constants instead of &[u8] ([#72](https://github/microsoft/windows-drivers-rs/pull/72)) + +### Fixed +- resolve warnings in rust-script blocks and only fail warnings in CI ([#87](https://github/microsoft/windows-drivers-rs/pull/87)) +- add missing cpu-arch macro defintions +- fix wdk path regkey detection + +### Other +- update versions in readme and rust-driver-makefile.toml +- update dependencies +- allow multiple_crate_versions in wdk-build (build dependency) ([#98](https://github/microsoft/windows-drivers-rs/pull/98)) +- update cargo-make tasks with arch-specific tools +- Bump thiserror from 1.0.48 to 1.0.55 ([#59](https://github/microsoft/windows-drivers-rs/pull/59)) +- restrict to one unsafe operation per block ([#24](https://github/microsoft/windows-drivers-rs/pull/24)) +- [**breaking**] enable rustdoc lints and resolve errors +- initial open-source check in diff --git a/crates/wdk-build/Cargo.toml b/crates/wdk-build/Cargo.toml index 423dc58e8..c67468591 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.3.0" +version = "0.4.0" description = "A library to configure a Cargo build script for binding generation and downstream linking of the WDK (Windows Driver Kit)" repository.workspace = true readme.workspace = true diff --git a/crates/wdk-build/rust-driver-makefile.toml b/crates/wdk-build/rust-driver-makefile.toml index e681d4412..6fc129eb7 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.3.0" } +//! wdk-build = { path = ".", version = "0.4.0" } //! ``` #![allow(unused_doc_comments)] @@ -148,7 +148,7 @@ script_runner_args = [ script = ''' //! ```cargo //! [dependencies] -//! wdk-build = { path = ".", version = "0.3.0" } +//! wdk-build = { path = ".", version = "0.4.0" } //! ``` #![allow(unused_doc_comments)] @@ -178,7 +178,7 @@ script_runner_args = [ script = ''' //! ```cargo //! [dependencies] -//! wdk-build = { path = ".", version = "0.3.0" } +//! wdk-build = { path = ".", version = "0.4.0" } //! ``` #![allow(unused_doc_comments)] @@ -224,7 +224,7 @@ condition_script = ''' //! ```cargo //! [dependencies] -//! wdk-build = { path = ".", version = "0.3.0" } +//! wdk-build = { path = ".", version = "0.4.0" } //! ``` #![allow(unused_doc_comments)] @@ -247,7 +247,7 @@ script = ''' //! ```cargo //! [dependencies] -//! wdk-build = { path = ".", version = "0.3.0" } +//! wdk-build = { path = ".", version = "0.4.0" } //! ``` #![allow(unused_doc_comments)] @@ -311,7 +311,7 @@ script_runner_args = [ script = ''' //! ```cargo //! [dependencies] -//! wdk-build = { path = ".", version = "0.3.0" } +//! wdk-build = { path = ".", version = "0.4.0" } //! ``` #![allow(unused_doc_comments)] @@ -335,7 +335,7 @@ script_runner_args = [ script = ''' //! ```cargo //! [dependencies] -//! wdk-build = { path = ".", version = "0.3.0" } +//! wdk-build = { path = ".", version = "0.4.0" } //! ``` #![allow(unused_doc_comments)] @@ -358,7 +358,7 @@ script_runner_args = [ script = ''' //! ```cargo //! [dependencies] -//! wdk-build = { path = ".", version = "0.3.0" } +//! wdk-build = { path = ".", version = "0.4.0" } //! ``` #![allow(unused_doc_comments)] @@ -381,7 +381,7 @@ script_runner_args = [ script = ''' //! ```cargo //! [dependencies] -//! wdk-build = { path = ".", version = "0.3.0" } +//! wdk-build = { path = ".", version = "0.4.0" } //! ``` #![allow(unused_doc_comments)] @@ -415,7 +415,7 @@ condition_script = ''' //! ```cargo //! [dependencies] -//! wdk-build = { path = ".", version = "0.3.0" } +//! wdk-build = { path = ".", version = "0.4.0" } //! anyhow = "1" //! ``` #![allow(unused_doc_comments)] @@ -450,7 +450,7 @@ script_runner_args = [ script = ''' //! ```cargo //! [dependencies] -//! wdk-build = { path = ".", version = "0.3.0" } +//! wdk-build = { path = ".", version = "0.4.0" } //! ``` #![allow(unused_doc_comments)] @@ -536,7 +536,7 @@ condition_script = ''' //! ```cargo //! [dependencies] -//! wdk-build = { path = ".", version = "0.3.0" } +//! wdk-build = { path = ".", version = "0.4.0" } //! anyhow = "1" //! ``` #![allow(unused_doc_comments)] diff --git a/crates/wdk-build/rust-driver-sample-makefile.toml b/crates/wdk-build/rust-driver-sample-makefile.toml index 282518491..29e574f67 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.3.0" } +//! wdk-build = { path = ".", version = "0.4.0" } //! ``` #![allow(unused_doc_comments)] @@ -37,7 +37,7 @@ condition_script = ''' //! ```cargo //! [dependencies] -//! wdk-build = { path = ".", version = "0.3.0" } +//! wdk-build = { path = ".", version = "0.4.0" } //! anyhow = "1" //! ``` #![allow(unused_doc_comments)] diff --git a/crates/wdk-build/src/utils.rs b/crates/wdk-build/src/utils.rs index e83df74c3..ceda0c7b4 100644 --- a/crates/wdk-build/src/utils.rs +++ b/crates/wdk-build/src/utils.rs @@ -296,7 +296,9 @@ fn read_registry_key_string_value( // SAFETY: `&mut opened_key_handle` is coerced to a &raw mut, so the address passed as the // argument is always valid. `&mut opened_key_handle` is coerced to a pointer of the correct // type. - unsafe { RegOpenKeyExA(key_handle, sub_key, 0, KEY_READ, &mut opened_key_handle) }.is_ok() { + unsafe { RegOpenKeyExA(key_handle, sub_key, 0, KEY_READ, &raw mut opened_key_handle) } + .is_ok() + { if // SAFETY: `opened_key_handle` is valid key opened with the `KEY_QUERY_VALUE` access right // (included in `KEY_READ`). `&mut len` is coerced to a &raw mut, so the address passed as @@ -310,7 +312,7 @@ fn read_registry_key_string_value( RRF_RT_REG_SZ, None, None, - Some(&mut len), + Some(&raw mut len), ) } .is_ok() @@ -331,7 +333,7 @@ fn read_registry_key_string_value( RRF_RT_REG_SZ, None, Some(buffer.as_mut_ptr().cast()), - Some(&mut len), + Some(&raw mut len), ) } .is_ok() diff --git a/crates/wdk-macros/CHANGELOG.md b/crates/wdk-macros/CHANGELOG.md index d56c1a4ac..ac092a257 100644 --- a/crates/wdk-macros/CHANGELOG.md +++ b/crates/wdk-macros/CHANGELOG.md @@ -5,6 +5,21 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [0.4.0](https://github.com/microsoft/windows-drivers-rs/compare/wdk-macros-v0.3.0...wdk-macros-v0.4.0) - 2025-04-18 + +### Added + +- Cache parameters & return type during `call_unsafe_wdf_function_binding` macro expansion ([#295](https://github.com/microsoft/windows-drivers-rs/pull/295)) + +### Fixed + +- passing cache tests when WDK config is enabled ([#332](https://github.com/microsoft/windows-drivers-rs/pull/332)) + +### Other + +- update README to clarify community engagement and contact methods ([#312](https://github.com/microsoft/windows-drivers-rs/pull/312)) +- [**breaking**] Remove lazy static instances ([#250](https://github.com/microsoft/windows-drivers-rs/pull/250)) + ## [0.3.0](https://github.com/microsoft/windows-drivers-rs/compare/wdk-macros-v0.2.0...wdk-macros-v0.3.0) - 2024-09-27 ### Added diff --git a/crates/wdk-macros/Cargo.toml b/crates/wdk-macros/Cargo.toml index fa1427f29..9dcbec378 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.3.0" +version = "0.4.0" description = "A collection of macros that help make it easier to interact with wdk-sys's direct bindings. This should not be directly consumed, and should be instead consumed via the wdk-sys crate." repository.workspace = true readme.workspace = true diff --git a/crates/wdk-panic/CHANGELOG.md b/crates/wdk-panic/CHANGELOG.md index 02747ec36..70d137608 100644 --- a/crates/wdk-panic/CHANGELOG.md +++ b/crates/wdk-panic/CHANGELOG.md @@ -5,6 +5,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [0.3.1](https://github.com/microsoft/windows-drivers-rs/compare/wdk-panic-v0.3.0...wdk-panic-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-panic-v0.2.0...wdk-panic-v0.3.0) - 2024-09-27 ### Added diff --git a/crates/wdk-panic/Cargo.toml b/crates/wdk-panic/Cargo.toml index fc2d6d5c9..4d1541315 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.0" +version = "0.3.1" 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 0df230e4d..c634575f5 100644 --- a/crates/wdk-sys/CHANGELOG.md +++ b/crates/wdk-sys/CHANGELOG.md @@ -5,6 +5,29 @@ 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 ### Added @@ -31,29 +54,29 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - fix `winget` llvm install command option ([#115](https://github.com/microsoft/windows-drivers-rs/pull/115)) - fix various pipeline breakages (nightly rustfmt bug, new nightly clippy lints, upstream winget dependency issue) ([#117](https://github.com/microsoft/windows-drivers-rs/pull/117)) - add lint exceptions for clippy::manual_c_str_literals and clippy::ref_as_ptr ([#108](https://github.com/microsoft/windows-drivers-rs/pull/108)) -# Changelog -All notable changes to this project will be documented in this file. - -The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), -and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). - - -## [0.2.0](https://github/microsoft/windows-drivers-rs/compare/wdk-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 +# 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 81a2bcd5c..41b19a6fc 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.3.0" +version = "0.4.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-sys/src/types.rs b/crates/wdk-sys/src/types.rs index eb0f4e319..534307b9b 100644 --- a/crates/wdk-sys/src/types.rs +++ b/crates/wdk-sys/src/types.rs @@ -7,6 +7,7 @@ pub use bindings::*; #[allow(non_upper_case_globals)] #[allow(non_camel_case_types)] #[allow(non_snake_case)] +#[rustversion::attr(all(nightly, since(2025-04-25)), allow(unnecessary_transmutes))] #[allow(unsafe_op_in_unsafe_fn)] #[allow(clippy::cast_lossless)] #[allow(clippy::cast_possible_truncation)] diff --git a/crates/wdk/CHANGELOG.md b/crates/wdk/CHANGELOG.md index 0484b7e8d..251df38cc 100644 --- a/crates/wdk/CHANGELOG.md +++ b/crates/wdk/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.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 diff --git a/crates/wdk/Cargo.toml b/crates/wdk/Cargo.toml index d93eb836e..d2d6ec8b1 100644 --- a/crates/wdk/Cargo.toml +++ b/crates/wdk/Cargo.toml @@ -1,7 +1,7 @@ [package] edition.workspace = true name = "wdk" -version = "0.3.0" +version = "0.3.1" # 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)" diff --git a/examples/sample-kmdf-driver/Cargo.lock b/examples/sample-kmdf-driver/Cargo.lock index d8792fe09..c435afeb9 100644 --- a/examples/sample-kmdf-driver/Cargo.lock +++ b/examples/sample-kmdf-driver/Cargo.lock @@ -13,9 +13,9 @@ dependencies = [ [[package]] name = "anstream" -version = "0.6.14" +version = "0.6.18" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "418c75fa768af9c03be99d17643f93f79bbba589895012a80e3452a19ddda15b" +checksum = "8acc5369981196006228e28809f761875c0327210a891e941f4c683b3a99529b" dependencies = [ "anstyle", "anstyle-parse", @@ -28,43 +28,44 @@ dependencies = [ [[package]] name = "anstyle" -version = "1.0.7" +version = "1.0.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "038dfcf04a5feb68e9c60b21c9625a54c2c0616e79b72b0fd87075a056ae1d1b" +checksum = "55cc3b69f167a1ef2e161439aa98aed94e6028e5f9a59be9a6ffb47aef1651f9" [[package]] name = "anstyle-parse" -version = "0.2.4" +version = "0.2.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c03a11a9034d92058ceb6ee011ce58af4a9bf61491aa7e1e59ecd24bd40d22d4" +checksum = "3b2d16507662817a6a20a9ea92df6652ee4f94f914589377d69f3b21bc5798a9" dependencies = [ "utf8parse", ] [[package]] name = "anstyle-query" -version = "1.1.0" +version = "1.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ad186efb764318d35165f1758e7dcef3b10628e26d41a44bc5550652e6804391" +checksum = "79947af37f4177cfead1110013d678905c37501914fba0efea834c3fe9a8d60c" dependencies = [ - "windows-sys", + "windows-sys 0.59.0", ] [[package]] name = "anstyle-wincon" -version = "3.0.3" +version = "3.0.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "61a38449feb7068f52bb06c12759005cf459ee52bb4adc1d5a7c4322d716fb19" +checksum = "ca3534e77181a9cc07539ad51f2141fe32f6c3ffd4df76db8ad92346b003ae4e" dependencies = [ "anstyle", - "windows-sys", + "once_cell", + "windows-sys 0.59.0", ] [[package]] name = "anyhow" -version = "1.0.97" +version = "1.0.98" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dcfed56ad506cb2c684a14971b8861fdc3baaaae314b9e5f9bb532cbe3ba7a4f" +checksum = "e16d2d3311acee920a9eb8d33b8cbc1787ce4a264e85f964c2404b969bdcd487" [[package]] name = "bindgen" @@ -88,9 +89,9 @@ dependencies = [ [[package]] name = "bitflags" -version = "2.6.0" +version = "2.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b048fb63fd8b5923fc5aa7b340d8e156aec7ec02f0c78fa8a6ddc2613f6f71de" +checksum = "5c8214115b7bf84099f1309324e63141d4c5d7cc26862f97a0a857dbefe165bd" [[package]] name = "camino" @@ -103,9 +104,9 @@ dependencies = [ [[package]] name = "cargo-platform" -version = "0.1.8" +version = "0.1.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "24b1f0365a6c6bb4020cd05806fd0d33c44d38046b8bd7f0e40814b9763cabfc" +checksum = "e35af189006b9c0f00a064685c727031e3ed2d8020f7ba284d78cc2671bd36ea" dependencies = [ "serde", ] @@ -126,9 +127,9 @@ dependencies = [ [[package]] name = "cc" -version = "1.2.18" +version = "1.2.19" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "525046617d8376e3db1deffb079e91cef90a89fc3ca5c185bbf8c9ecdd15cd5c" +checksum = "8e3a13707ac958681c13b39b458c073d0d9bc8a22cb1b2f4c8e55eb72c13f362" dependencies = [ "shlex", ] @@ -161,9 +162,9 @@ dependencies = [ [[package]] name = "clap" -version = "4.5.13" +version = "4.5.37" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0fbb260a053428790f3de475e304ff84cdbc4face759ea7a3e64c1edd938a7fc" +checksum = "eccb054f56cbd38340b380d4a8e69ef1f02f1af43db2f0cc817a4774d80ae071" dependencies = [ "clap_builder", "clap_derive", @@ -181,9 +182,9 @@ dependencies = [ [[package]] name = "clap_builder" -version = "4.5.13" +version = "4.5.37" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "64b17d7ea74e9f833c7dbf2cbe4fb12ff26783eda4782a8975b72f895c9b4d99" +checksum = "efd9466fac8543255d3b1fcad4762c5e116ffe808c8a3043d4263cd4fd4862a2" dependencies = [ "anstream", "anstyle", @@ -193,9 +194,9 @@ dependencies = [ [[package]] name = "clap_derive" -version = "4.5.13" +version = "4.5.32" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "501d359d5f3dcaf6ecdeee48833ae73ec6e42723a1e52419c79abf9507eec0a0" +checksum = "09176aae279615badda0765c0c0b3f6ed53f4709118af73cf4655d85d1530cd7" dependencies = [ "heck", "proc-macro2", @@ -205,30 +206,30 @@ dependencies = [ [[package]] name = "clap_lex" -version = "0.7.1" +version = "0.7.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4b82cf0babdbd58558212896d1a4272303a57bdb245c2bf1147185fb45640e70" +checksum = "f46ad14479a25103f283c0f10005961cf086d8dc42205bb44c46ac563475dca6" [[package]] name = "colorchoice" -version = "1.0.1" +version = "1.0.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0b6a852b24ab71dffc585bcb46eaf7959d175cb865a7152e35b348d1b2960422" +checksum = "5b63caa9aa9397e2d9480a9b13673856c78d8ac123288526c37d7839f2a86990" [[package]] name = "either" -version = "1.13.0" +version = "1.15.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "60b1af1c220855b6ceac025d3f6ecdd2b7c4894bfe9cd9bda4fbb4bc7c0d4cf0" +checksum = "48c757948c5ede0e46177b7add2e67155f70e33c07fea8284df6576da70b3719" [[package]] name = "errno" -version = "0.3.9" +version = "0.3.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "534c5cf6194dfab3db3242765c03bbe257cf92f22b38f6bc0c58d59108a820ba" +checksum = "976dd42dc7e85965fe702eb8164f21f450704bdde31faefd6471dba214cb594e" dependencies = [ "libc", - "windows-sys", + "windows-sys 0.59.0", ] [[package]] @@ -238,14 +239,14 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c29c30684418547d476f0b48e84f4821639119c483b1eccd566c8cd0cd05f521" dependencies = [ "rustix", - "windows-sys", + "windows-sys 0.52.0", ] [[package]] name = "glob" -version = "0.3.1" +version = "0.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d2fabcfbdc87f4758337ca535fb41a6d701b65693ce38287d856d1674551ec9b" +checksum = "a8d1add55171497b4705a648c6b583acafb01d58050a51727785f0b2c8e0a2b2" [[package]] name = "heck" @@ -255,9 +256,9 @@ checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea" [[package]] name = "is_terminal_polyfill" -version = "1.70.0" +version = "1.70.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f8478577c03552c21db0e2724ffb8986a5ce7af88107e6be5d2ee6e158c12800" +checksum = "7943c866cc5cd64cbc25b2e01621d07fa8eb2a1a23160ee81ce38704e97b8ecf" [[package]] name = "itertools" @@ -270,9 +271,9 @@ dependencies = [ [[package]] name = "itoa" -version = "1.0.11" +version = "1.0.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "49f1f14873335454500d59611f1cf4a4b0f786f9ac11f4312a78e4cf2566695b" +checksum = "4a5f13b858c8d314ee3e8f639011f7ccefe71f97f96e50151fb991f267928e2c" [[package]] name = "lazy_static" @@ -282,15 +283,15 @@ checksum = "bbd2bcb4c963f2ddae06a2efc7e9f3591312473c50c6685e1f298068316e66fe" [[package]] name = "libc" -version = "0.2.155" +version = "0.2.172" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "97b3888a4aecf77e811145cadf6eef5901f4782c53886191b2f693f24761847c" +checksum = "d750af042f7ef4f724306de029d18836c26c1765a54a6a3f094cbd23a7267ffa" [[package]] name = "libloading" -version = "0.8.4" +version = "0.8.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e310b3a6b5907f99202fcdb4960ff45b93735d7c7d96b760fcff8db2dc0e103d" +checksum = "fc2f4eb4bc735547cfed7c0a4922cbd04a4655978c09b54f1f7b228750664c34" dependencies = [ "cfg-if", "windows-targets", @@ -298,15 +299,15 @@ dependencies = [ [[package]] name = "linux-raw-sys" -version = "0.4.14" +version = "0.4.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "78b3ae25bc7c8c38cec158d1f2757ee79e9b3740fbc7ccf0e59e4b08d793fa89" +checksum = "d26c52dbd32dccf2d10cac7725f8eae5296885fb5703b261f7d0a0739ec807ab" [[package]] name = "log" -version = "0.4.22" +version = "0.4.27" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a7a70ba024b9dc04c27ea2f0c0548feb474ec5c54bba33a7f72f873a39d07b24" +checksum = "13dc2df351e3202783a1fe0d44375f7295ffb4049267b0f3018346dc122a1d94" [[package]] name = "matchers" @@ -351,9 +352,9 @@ dependencies = [ [[package]] name = "once_cell" -version = "1.20.2" +version = "1.21.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1261fe7e33c73b354eab43b1273a57c8f967d0391e80353e51f764ac02cf6775" +checksum = "42f5e15c9953c5e4ccceeb2e7382a716482c34515315f7b03532b8b4e8393d2d" [[package]] name = "overload" @@ -369,15 +370,15 @@ checksum = "57c0d7b74b563b49d38dae00a0c37d4d6de9b432382b2892f0574ddcae73fd0a" [[package]] name = "pin-project-lite" -version = "0.2.14" +version = "0.2.16" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bda66fc9667c18cb2758a2ac84d1167245054bcf85d5d1aaa6923f45801bdd02" +checksum = "3b3cff922bd51709b605d9ead9aa71031d81447142d828eb4a6eba76fe619f9b" [[package]] name = "prettyplease" -version = "0.2.20" +version = "0.2.32" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5f12335488a2f3b0a83b14edad48dca9879ce89b2edd10e80237e4e852dd645e" +checksum = "664ec5419c51e34154eec046ebcba56312d5a2fc3b09a06da188e1ad21afadf6" dependencies = [ "proc-macro2", "syn", @@ -385,9 +386,9 @@ dependencies = [ [[package]] name = "proc-macro2" -version = "1.0.94" +version = "1.0.95" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a31971752e70b8b2686d7e46ec17fb38dad4051d94024c88df49b667caea9c84" +checksum = "02b3e5e68a3a1a02aad3ec490a98007cbc13c37cbe84a3cd7b8e406d76e7f778" dependencies = [ "unicode-ident", ] @@ -403,14 +404,14 @@ dependencies = [ [[package]] name = "regex" -version = "1.10.5" +version = "1.11.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b91213439dad192326a0d7c6ee3955910425f441d7038e0d6933b0aec5c4517f" +checksum = "b544ef1b4eac5dc2db33ea63606ae9ffcfac26c1416a2806ae0bf5f56b201191" dependencies = [ "aho-corasick", "memchr", - "regex-automata 0.4.7", - "regex-syntax 0.8.4", + "regex-automata 0.4.9", + "regex-syntax 0.8.5", ] [[package]] @@ -424,13 +425,13 @@ dependencies = [ [[package]] name = "regex-automata" -version = "0.4.7" +version = "0.4.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "38caf58cc5ef2fed281f89292ef23f6365465ed9a41b7a7754eb4e26496c92df" +checksum = "809e8dc61f6de73b46c85f4c96486310fe304c434cfa43669d7b40f711150908" dependencies = [ "aho-corasick", "memchr", - "regex-syntax 0.8.4", + "regex-syntax 0.8.5", ] [[package]] @@ -441,9 +442,9 @@ checksum = "f162c6dd7b008981e4d40210aca20b4bd0f9b60ca9271061b07f78537722f2e1" [[package]] name = "regex-syntax" -version = "0.8.4" +version = "0.8.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7a66a03ae7c801facd77a29370b4faec201768915ac14a721ba36f20bc9c209b" +checksum = "2b15c43186be67a4fd63bee50d0303afffcef381492ebe2c5d87f324e1b8815c" [[package]] name = "rustc-hash" @@ -453,15 +454,15 @@ checksum = "357703d41365b4b27c590e3ed91eabb1b663f07c4c084095e60cbed4362dff0d" [[package]] name = "rustix" -version = "0.38.34" +version = "0.38.44" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "70dc5ec042f7a43c4a73241207cecc9873a06d45debb38b329f8541d85c2730f" +checksum = "fdb5bc1ae2baa591800df16c9ca78619bf65c0488b41b96ccec5d11220d8c154" dependencies = [ "bitflags", "errno", "libc", "linux-raw-sys", - "windows-sys", + "windows-sys 0.59.0", ] [[package]] @@ -472,9 +473,9 @@ checksum = "eded382c5f5f786b989652c49544c4877d9f015cc22e145a5ea8ea66c2921cd2" [[package]] name = "ryu" -version = "1.0.18" +version = "1.0.20" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f3cb5ba0dc43242ce17de99c180e96db90b235b8a9fdc9543c96d2209116bd9f" +checksum = "28d3b2b1366ec20994f1fd18c3c594f05c5dd4bc44d8bb0c1c632c8d6829481f" [[package]] name = "sample-kmdf-driver" @@ -489,9 +490,9 @@ dependencies = [ [[package]] name = "scratch" -version = "1.0.7" +version = "1.0.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a3cf7c11c38cb994f3d40e8a8cde3bbd1f72a435e4c49e85d6553d8312306152" +checksum = "9f6280af86e5f559536da57a45ebc84948833b3bee313a7dd25232e09c878a52" [[package]] name = "semver" @@ -504,18 +505,18 @@ dependencies = [ [[package]] name = "serde" -version = "1.0.204" +version = "1.0.219" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bc76f558e0cbb2a839d37354c575f1dc3fdc6546b5be373ba43d95f231bf7c12" +checksum = "5f0e2c6ed6606019b4e29e69dbaba95b11854410e5347d525002456dbbb786b6" dependencies = [ "serde_derive", ] [[package]] name = "serde_derive" -version = "1.0.204" +version = "1.0.219" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e0cd7e117be63d3c3678776753929474f3b04a43a080c744d6b0ae2a8c28e222" +checksum = "5b0276cf7f2c73365f7157c8123c21cd9a50fbbd844757af28ca1f5925fc2a00" dependencies = [ "proc-macro2", "quote", @@ -524,11 +525,12 @@ dependencies = [ [[package]] name = "serde_json" -version = "1.0.120" +version = "1.0.140" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4e0d21c9a8cae1235ad58a00c11cb40d4b1e5c784f1ef2c537876ed6ffd8b7c5" +checksum = "20068b6e96dc6c9bd23e01df8827e6c7e1f2fddd43c21810382803c136b99373" dependencies = [ "itoa", + "memchr", "ryu", "serde", ] @@ -550,9 +552,9 @@ checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64" [[package]] name = "smallvec" -version = "1.13.2" +version = "1.15.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3c5e1a9a646d36c3599cd173a41282daf47c44583ad367b8e6837255952e5c67" +checksum = "8917285742e9f3e1683f0a9c4e6b57960b7314d0b08d30d1ecd426713ee2eee9" [[package]] name = "strsim" @@ -664,9 +666,9 @@ dependencies = [ [[package]] name = "unicode-ident" -version = "1.0.12" +version = "1.0.18" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3354b9ac3fae1ff6755cb6db53683adb661634f67557942dea4facebec0fee4b" +checksum = "5a5f39404a5da50712a4c1eecf25e90dd62b613502b7e925fd4e4d19b5c96512" [[package]] name = "utf8parse" @@ -676,13 +678,13 @@ checksum = "06abde3611657adf66d383f00b093d7faecc7fa57071cce2578660c9f1010821" [[package]] name = "valuable" -version = "0.1.0" +version = "0.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "830b7e5d4d90034032940e4ace0d9a9a057e7a45cd94e6c007832e39edb82f6d" +checksum = "ba73ea9cf16a25df0c8caa16c51acb937d5712a8429db78a3ee29d5dcacd3a65" [[package]] name = "wdk" -version = "0.3.0" +version = "0.3.1" dependencies = [ "cfg-if", "tracing", @@ -693,7 +695,7 @@ dependencies = [ [[package]] name = "wdk-alloc" -version = "0.3.0" +version = "0.3.1" dependencies = [ "tracing", "tracing-subscriber", @@ -703,7 +705,7 @@ dependencies = [ [[package]] name = "wdk-build" -version = "0.3.0" +version = "0.4.0" dependencies = [ "anyhow", "bindgen", @@ -724,7 +726,7 @@ dependencies = [ [[package]] name = "wdk-macros" -version = "0.3.0" +version = "0.4.0" dependencies = [ "cfg-if", "fs4", @@ -739,11 +741,11 @@ dependencies = [ [[package]] name = "wdk-panic" -version = "0.3.0" +version = "0.3.1" [[package]] name = "wdk-sys" -version = "0.3.0" +version = "0.4.0" dependencies = [ "anyhow", "bindgen", @@ -854,6 +856,15 @@ dependencies = [ "windows-targets", ] +[[package]] +name = "windows-sys" +version = "0.59.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e38bc4d79ed67fd075bcc251a1c39b32a1776bbe92e5bef1f0bf1f8c531853b" +dependencies = [ + "windows-targets", +] + [[package]] name = "windows-targets" version = "0.52.6" diff --git a/examples/sample-kmdf-driver/Cargo.toml b/examples/sample-kmdf-driver/Cargo.toml index 524b9d37d..b519e4c6b 100644 --- a/examples/sample-kmdf-driver/Cargo.toml +++ b/examples/sample-kmdf-driver/Cargo.toml @@ -21,13 +21,13 @@ crate-type = ["cdylib"] test = false [build-dependencies] -wdk-build = { path = "../../crates/wdk-build", version = "0.3.0" } +wdk-build = { path = "../../crates/wdk-build", version = "0.4.0" } [dependencies] -wdk = { path = "../../crates/wdk", version = "0.3.0" } -wdk-alloc = { path = "../../crates/wdk-alloc", version = "0.3.0" } -wdk-panic = { path = "../../crates/wdk-panic", version = "0.3.0" } -wdk-sys = { path = "../../crates/wdk-sys", version = "0.3.0" } +wdk = { path = "../../crates/wdk", version = "0.3.1" } +wdk-alloc = { path = "../../crates/wdk-alloc", version = "0.3.1" } +wdk-panic = { path = "../../crates/wdk-panic", version = "0.3.1" } +wdk-sys = { path = "../../crates/wdk-sys", version = "0.4.0" } [features] default = [] diff --git a/examples/sample-umdf-driver/Cargo.lock b/examples/sample-umdf-driver/Cargo.lock index be58fc495..80c375c6c 100644 --- a/examples/sample-umdf-driver/Cargo.lock +++ b/examples/sample-umdf-driver/Cargo.lock @@ -680,7 +680,7 @@ checksum = "830b7e5d4d90034032940e4ace0d9a9a057e7a45cd94e6c007832e39edb82f6d" [[package]] name = "wdk" -version = "0.3.0" +version = "0.3.1" dependencies = [ "cfg-if", "tracing", @@ -691,7 +691,7 @@ dependencies = [ [[package]] name = "wdk-build" -version = "0.3.0" +version = "0.4.0" dependencies = [ "anyhow", "bindgen", @@ -712,7 +712,7 @@ dependencies = [ [[package]] name = "wdk-macros" -version = "0.3.0" +version = "0.4.0" dependencies = [ "cfg-if", "fs4", @@ -727,7 +727,7 @@ dependencies = [ [[package]] name = "wdk-sys" -version = "0.3.0" +version = "0.4.0" dependencies = [ "anyhow", "bindgen", diff --git a/examples/sample-umdf-driver/Cargo.toml b/examples/sample-umdf-driver/Cargo.toml index 8e5678efb..e675fb354 100644 --- a/examples/sample-umdf-driver/Cargo.toml +++ b/examples/sample-umdf-driver/Cargo.toml @@ -21,11 +21,11 @@ crate-type = ["cdylib"] test = false [build-dependencies] -wdk-build = { path = "../../crates/wdk-build", version = "0.3.0" } +wdk-build = { path = "../../crates/wdk-build", version = "0.4.0" } [dependencies] -wdk = { path = "../../crates/wdk", version = "0.3.0" } -wdk-sys = { path = "../../crates/wdk-sys", version = "0.3.0" } +wdk = { path = "../../crates/wdk", version = "0.3.1" } +wdk-sys = { path = "../../crates/wdk-sys", version = "0.4.0" } [features] default = [] diff --git a/examples/sample-wdm-driver/Cargo.lock b/examples/sample-wdm-driver/Cargo.lock index 3fa5ff6a1..cc4ef1f9d 100644 --- a/examples/sample-wdm-driver/Cargo.lock +++ b/examples/sample-wdm-driver/Cargo.lock @@ -682,7 +682,7 @@ checksum = "830b7e5d4d90034032940e4ace0d9a9a057e7a45cd94e6c007832e39edb82f6d" [[package]] name = "wdk" -version = "0.3.0" +version = "0.3.1" dependencies = [ "cfg-if", "tracing", @@ -693,7 +693,7 @@ dependencies = [ [[package]] name = "wdk-alloc" -version = "0.3.0" +version = "0.3.1" dependencies = [ "tracing", "tracing-subscriber", @@ -703,7 +703,7 @@ dependencies = [ [[package]] name = "wdk-build" -version = "0.3.0" +version = "0.4.0" dependencies = [ "anyhow", "bindgen", @@ -724,7 +724,7 @@ dependencies = [ [[package]] name = "wdk-macros" -version = "0.3.0" +version = "0.4.0" dependencies = [ "cfg-if", "fs4", @@ -739,11 +739,11 @@ dependencies = [ [[package]] name = "wdk-panic" -version = "0.3.0" +version = "0.3.1" [[package]] name = "wdk-sys" -version = "0.3.0" +version = "0.4.0" dependencies = [ "anyhow", "bindgen", diff --git a/examples/sample-wdm-driver/Cargo.toml b/examples/sample-wdm-driver/Cargo.toml index 7f2f7f7ec..4d3774c97 100644 --- a/examples/sample-wdm-driver/Cargo.toml +++ b/examples/sample-wdm-driver/Cargo.toml @@ -19,13 +19,13 @@ crate-type = ["cdylib"] test = false [build-dependencies] -wdk-build = { path = "../../crates/wdk-build", version = "0.3.0" } +wdk-build = { path = "../../crates/wdk-build", version = "0.4.0" } [dependencies] -wdk-alloc = { path = "../../crates/wdk-alloc", version = "0.3.0" } -wdk = { path = "../../crates/wdk", version = "0.3.0" } -wdk-panic = { path = "../../crates/wdk-panic", version = "0.3.0" } -wdk-sys = { path = "../../crates/wdk-sys", version = "0.3.0" } +wdk-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" } [features] default = [] diff --git a/tests/config-kmdf/Cargo.lock b/tests/config-kmdf/Cargo.lock index 69068b6a3..f2af0acd1 100644 --- a/tests/config-kmdf/Cargo.lock +++ b/tests/config-kmdf/Cargo.lock @@ -847,7 +847,7 @@ checksum = "830b7e5d4d90034032940e4ace0d9a9a057e7a45cd94e6c007832e39edb82f6d" [[package]] name = "wdk-build" -version = "0.3.0" +version = "0.4.0" dependencies = [ "anyhow", "bindgen", @@ -868,7 +868,7 @@ dependencies = [ [[package]] name = "wdk-macros" -version = "0.3.0" +version = "0.4.0" dependencies = [ "cfg-if", "fs4 0.12.0", @@ -896,7 +896,7 @@ dependencies = [ [[package]] name = "wdk-sys" -version = "0.3.0" +version = "0.4.0" dependencies = [ "anyhow", "bindgen", diff --git a/tests/config-umdf/Cargo.lock b/tests/config-umdf/Cargo.lock index 6d251d0d2..c6f8b5ebe 100644 --- a/tests/config-umdf/Cargo.lock +++ b/tests/config-umdf/Cargo.lock @@ -847,7 +847,7 @@ checksum = "830b7e5d4d90034032940e4ace0d9a9a057e7a45cd94e6c007832e39edb82f6d" [[package]] name = "wdk-build" -version = "0.3.0" +version = "0.4.0" dependencies = [ "anyhow", "bindgen", @@ -868,7 +868,7 @@ dependencies = [ [[package]] name = "wdk-macros" -version = "0.3.0" +version = "0.4.0" dependencies = [ "cfg-if", "fs4 0.12.0", @@ -896,7 +896,7 @@ dependencies = [ [[package]] name = "wdk-sys" -version = "0.3.0" +version = "0.4.0" dependencies = [ "anyhow", "bindgen", diff --git a/tests/mixed-package-kmdf-workspace/Cargo.lock b/tests/mixed-package-kmdf-workspace/Cargo.lock index 9d9beef3b..4862a9b84 100644 --- a/tests/mixed-package-kmdf-workspace/Cargo.lock +++ b/tests/mixed-package-kmdf-workspace/Cargo.lock @@ -687,7 +687,7 @@ checksum = "830b7e5d4d90034032940e4ace0d9a9a057e7a45cd94e6c007832e39edb82f6d" [[package]] name = "wdk" -version = "0.3.0" +version = "0.3.1" dependencies = [ "cfg-if", "tracing", @@ -698,7 +698,7 @@ dependencies = [ [[package]] name = "wdk-alloc" -version = "0.3.0" +version = "0.3.1" dependencies = [ "tracing", "tracing-subscriber", @@ -708,7 +708,7 @@ dependencies = [ [[package]] name = "wdk-build" -version = "0.3.0" +version = "0.4.0" dependencies = [ "anyhow", "bindgen", @@ -729,7 +729,7 @@ dependencies = [ [[package]] name = "wdk-macros" -version = "0.3.0" +version = "0.4.0" dependencies = [ "cfg-if", "fs4", @@ -744,11 +744,11 @@ dependencies = [ [[package]] name = "wdk-panic" -version = "0.3.0" +version = "0.3.1" [[package]] name = "wdk-sys" -version = "0.3.0" +version = "0.4.0" dependencies = [ "anyhow", "bindgen", diff --git a/tests/mixed-package-kmdf-workspace/Cargo.toml b/tests/mixed-package-kmdf-workspace/Cargo.toml index e8ec4244a..1f754c367 100644 --- a/tests/mixed-package-kmdf-workspace/Cargo.toml +++ b/tests/mixed-package-kmdf-workspace/Cargo.toml @@ -9,12 +9,12 @@ kmdf-version-major = 1 target-kmdf-version-minor = 33 [workspace.dependencies] -wdk = { path = "../../crates/wdk", version = "0.3.0" } -wdk-alloc = { path = "../../crates/wdk-alloc", version = "0.3.0" } -wdk-build = { path = "../../crates/wdk-build", version = "0.3.0" } -wdk-macros = { path = "../../crates/wdk-macros", version = "0.3.0" } -wdk-panic = { path = "../../crates/wdk-panic", version = "0.3.0" } -wdk-sys = { path = "../../crates/wdk-sys", version = "0.3.0" } +wdk = { path = "../../crates/wdk", version = "0.3.1" } +wdk-alloc = { path = "../../crates/wdk-alloc", version = "0.3.1" } +wdk-build = { path = "../../crates/wdk-build", version = "0.4.0" } +wdk-macros = { path = "../../crates/wdk-macros", version = "0.4.0" } +wdk-panic = { path = "../../crates/wdk-panic", version = "0.3.1" } +wdk-sys = { path = "../../crates/wdk-sys", version = "0.4.0" } [profile.dev] panic = "abort" diff --git a/tests/umdf-driver-workspace/Cargo.lock b/tests/umdf-driver-workspace/Cargo.lock index 96da4644e..8b5158c95 100644 --- a/tests/umdf-driver-workspace/Cargo.lock +++ b/tests/umdf-driver-workspace/Cargo.lock @@ -690,7 +690,7 @@ checksum = "830b7e5d4d90034032940e4ace0d9a9a057e7a45cd94e6c007832e39edb82f6d" [[package]] name = "wdk" -version = "0.3.0" +version = "0.3.1" dependencies = [ "cfg-if", "tracing", @@ -701,7 +701,7 @@ dependencies = [ [[package]] name = "wdk-build" -version = "0.3.0" +version = "0.4.0" dependencies = [ "anyhow", "bindgen", @@ -722,7 +722,7 @@ dependencies = [ [[package]] name = "wdk-macros" -version = "0.3.0" +version = "0.4.0" dependencies = [ "cfg-if", "fs4", @@ -737,7 +737,7 @@ dependencies = [ [[package]] name = "wdk-sys" -version = "0.3.0" +version = "0.4.0" dependencies = [ "anyhow", "bindgen", diff --git a/tests/umdf-driver-workspace/Cargo.toml b/tests/umdf-driver-workspace/Cargo.toml index 89bb8fca7..2ac08cbbc 100644 --- a/tests/umdf-driver-workspace/Cargo.toml +++ b/tests/umdf-driver-workspace/Cargo.toml @@ -9,12 +9,12 @@ umdf-version-major = 2 target-umdf-version-minor = 33 [workspace.dependencies] -wdk = { path = "../../crates/wdk", version = "0.3.0" } -wdk-alloc = { path = "../../crates/wdk-alloc", version = "0.3.0" } -wdk-build = { path = "../../crates/wdk-build", version = "0.3.0" } -wdk-macros = { path = "../../crates/wdk-macros", version = "0.3.0" } -wdk-panic = { path = "../../crates/wdk-panic", version = "0.3.0" } -wdk-sys = { path = "../../crates/wdk-sys", version = "0.3.0" } +wdk = { path = "../../crates/wdk", version = "0.3.1" } +wdk-alloc = { path = "../../crates/wdk-alloc", version = "0.3.1" } +wdk-build = { path = "../../crates/wdk-build", version = "0.4.0" } +wdk-macros = { path = "../../crates/wdk-macros", version = "0.4.0" } +wdk-panic = { path = "../../crates/wdk-panic", version = "0.3.1" } +wdk-sys = { path = "../../crates/wdk-sys", version = "0.4.0" } [profile.dev] lto = true diff --git a/tests/umdf-driver-workspace/crates/driver_1/driver_1.inx b/tests/umdf-driver-workspace/crates/driver_1/driver_1.inx index 35b071dbf..9b0e96803 100644 Binary files a/tests/umdf-driver-workspace/crates/driver_1/driver_1.inx and b/tests/umdf-driver-workspace/crates/driver_1/driver_1.inx differ diff --git a/tests/umdf-driver-workspace/crates/driver_2/driver_2.inx b/tests/umdf-driver-workspace/crates/driver_2/driver_2.inx index 40e53e319..9e2c0eeaf 100644 Binary files a/tests/umdf-driver-workspace/crates/driver_2/driver_2.inx and b/tests/umdf-driver-workspace/crates/driver_2/driver_2.inx differ diff --git a/tests/wdk-macros-tests/src/lib.rs b/tests/wdk-macros-tests/src/lib.rs index 7eb1b4da2..8d9a46b26 100644 --- a/tests/wdk-macros-tests/src/lib.rs +++ b/tests/wdk-macros-tests/src/lib.rs @@ -3,7 +3,7 @@ use std::{path::PathBuf, sync::LazyLock}; -use fs4::FileExt; +use fs4::fs_std::FileExt; pub use macrotest::{expand, expand_args}; pub use owo_colors::OwoColorize; pub use paste::paste; diff --git a/tests/wdk-sys-tests/Cargo.lock b/tests/wdk-sys-tests/Cargo.lock index 6dbf3d8d7..36eab4fd4 100644 --- a/tests/wdk-sys-tests/Cargo.lock +++ b/tests/wdk-sys-tests/Cargo.lock @@ -672,7 +672,7 @@ checksum = "830b7e5d4d90034032940e4ace0d9a9a057e7a45cd94e6c007832e39edb82f6d" [[package]] name = "wdk-build" -version = "0.3.0" +version = "0.4.0" dependencies = [ "anyhow", "bindgen", @@ -693,7 +693,7 @@ dependencies = [ [[package]] name = "wdk-macros" -version = "0.3.0" +version = "0.4.0" dependencies = [ "cfg-if", "fs4", @@ -708,7 +708,7 @@ dependencies = [ [[package]] name = "wdk-sys" -version = "0.3.0" +version = "0.4.0" dependencies = [ "anyhow", "bindgen",