Skip to content

Conversation

@leon-xd
Copy link
Contributor

@leon-xd leon-xd commented Apr 18, 2025

πŸ€– New release

  • wdk-macros: 0.3.0 -> 0.4.0
  • wdk-build: 0.3.0 -> 0.4.0 (⚠ API breaking changes)
  • wdk-sys: 0.3.0 -> 0.4.0 (βœ“ API compatible changes)
  • wdk: 0.3.0 -> 0.3.1 (βœ“ API compatible changes)
  • wdk-alloc: 0.3.0 -> 0.3.1 (βœ“ API compatible changes)
  • wdk-panic: 0.3.0 -> 0.3.1 (βœ“ API compatible changes)

⚠ wdk-build breaking changes

--- failure enum_variant_added: enum variant added on exhaustive enum ---

Description:
A publicly-visible enum without #[non_exhaustive] has a new variant.
        ref: https://doc.rust-lang.org/cargo/reference/semver.html#enum-variant-new
       impl: https://github.com/obi1kenobi/cargo-semver-checks/tree/v0.40.0/src/lints/enum_variant_added.ron

Failed in:
  variant ConfigError:WdkBuildPackageNotFoundInCargoMetadata in C:\Users\leondu\AppData\Local\Temp\.tmprgtucx\main\crates\wdk-build\src\lib.rs:135
  variant ConfigError:UnsupportedRustEdition in C:\Users\leondu\AppData\Local\Temp\.tmprgtucx\main\crates\wdk-build\src\lib.rs:139
  variant ConfigError:MsrvNotSupportedByBindgen in C:\Users\leondu\AppData\Local\Temp\.tmprgtucx\main\crates\wdk-build\src\lib.rs:147
  variant ConfigError:RustVersionParseError in C:\Users\leondu\AppData\Local\Temp\.tmprgtucx\main\crates\wdk-build\src\lib.rs:156

--- failure inherent_method_missing: pub method removed or renamed ---

Description:
A publicly-visible method or associated fn is no longer available under its prior name. It may have been renamed or removed entirely.
        ref: https://doc.rust-lang.org/cargo/reference/semver.html#item-remove
       impl: https://github.com/obi1kenobi/cargo-semver-checks/tree/v0.40.0/src/lints/inherent_method_missing.ron

Failed in:
  Config::get_include_paths, previously in file C:\Users\leondu\AppData\Local\Temp\.tmpkun1HB\wdk-build\src\lib.rs:323
  Config::get_library_paths, previously in file C:\Users\leondu\AppData\Local\Temp\.tmpkun1HB\wdk-build\src\lib.rs:423
  Config::get_preprocessor_definitions_iter, previously in file C:\Users\leondu\AppData\Local\Temp\.tmpkun1HB\wdk-build\src\lib.rs:503

--- failure trait_method_parameter_count_changed: pub trait method parameter count changed ---

Description:
A trait method now takes a different number of parameters.
        ref: https://doc.rust-lang.org/cargo/reference/semver.html#major-any-change-to-trait-item-signatures
       impl: https://github.com/obi1kenobi/cargo-semver-checks/tree/v0.40.0/src/lints/trait_method_parameter_count_changed.ron

Failed in:
  BuilderExt::wdk_default now takes 1 instead of 2 parameters, in file C:\Users\leondu\AppData\Local\Temp\.tmprgtucx\main\crates\wdk-build\src\bindgen.rs:24
Changelog

wdk-macros

0.4.0 - 2025-04-18

Added

  • Cache parameters & return type during call_unsafe_wdf_function_binding macro expansion (#295)

Fixed

  • passing cache tests when WDK config is enabled (#332)

Other

  • update README to clarify community engagement and contact methods (#312)
  • [breaking] Remove lazy static instances (#250)

wdk-build

0.4.0 - 2025-04-18

Added

  • extend coverage in wdk-sys to include usb-related headers (#296)
  • expand wdk-sys coverage to include gpio and parallel ports related headers (#278)
  • add support for Storage API subset in wdk-sys (#287)
  • expand wdk-sys coverage to include spb-related headers (#263)
  • [breaking] expand wdk-sys coverage to include hid-related headers (#260)

Fixed

  • [breaking] specify rust version & edition to wdk-default bindgen::builder (#314)
  • [breaking] explicitly mark _KGDTENTRY64 and _KIDTENTRY64 as opaque types in bindgen (#277)
  • suppress linker warnings exposed by nightly rustc change (#279)
  • add missing arm64rt library to linker flags for arm64 kernel-mode builds (#261)

Other

  • Use stack-based formatter for debug-printing. (#233)
  • update README to clarify community engagement and contact methods (#312)
  • remove noop must_use on trait impl (#302)
  • [breaking] Remove lazy static instances (#250)
  • fix panic condition docs for package_driver_flow_condition_script (#264)
  • port certificate-generation condition script to Rust (#259)
  • remove redundant code-path in detect_wdk_content_root (#249)
  • use next_back instead of last on double-ended iterators (clippy::double_ended_iterator_last) (#262)
  • use is_none_or for clippy::nonminimal_bool and resolve clippy::needless_raw_string_hashes (#231)
  • fix clippy::nonminimal_bool and clippy::ref_option issues (#230)

wdk-sys

0.4.0 - 2025-04-18

Added

  • extend coverage in wdk-sys to include usb-related headers (#296)
  • expand wdk-sys coverage to include gpio and parallel ports related headers (#278)
  • add support for Storage API subset in wdk-sys (#287)
  • expand wdk-sys coverage to include spb-related headers (#263)
  • [breaking] expand wdk-sys coverage to include hid-related headers (#260)

Fixed

  • passing cache tests when WDK config is enabled (#332)
  • [breaking] specify rust version & edition to wdk-default bindgen::builder (#314)
  • use absolute paths for items used in PAGED_CODE macro (#297)

Other

  • Use stack-based formatter for debug-printing. (#233)
  • update README to clarify community engagement and contact methods (#312)
  • [breaking] Remove lazy static instances (#250)
  • use is_none_or for clippy::nonminimal_bool and resolve clippy::needless_raw_string_hashes (#231)

wdk

0.3.1 - 2025-04-18

Other

  • Use stack-based formatter for debug-printing. (#233)
  • update README to clarify community engagement and contact methods (#312)

wdk-alloc

0.3.1 - 2025-04-18

Other

  • update README to clarify community engagement and contact methods (#312)

wdk-panic

0.3.1 - 2025-04-18

Other

  • update README to clarify community engagement and contact methods (#312)


This PR was generated with release-plz.

@leon-xd
Copy link
Contributor Author

leon-xd commented Apr 18, 2025

Release testing updates - I was able to get sample drivers to build and run successfully using the current changes. cargo test looks good when uncommenting KMDF config in root Cargo.toml.

KMDF Sample Driver:
image

UMDF Sample Driver:
image

WDM Sample Driver:
image

Device Manager:
image

@leon-xd leon-xd changed the title chore: release chore: march 2025 release Apr 18, 2025
@wmmc88 wmmc88 changed the title chore: march 2025 release chore: april 2025 release Apr 21, 2025
@leon-xd
Copy link
Contributor Author

leon-xd commented Apr 29, 2025

Succesfully able to include updated versions of crates in internal projects -- opening PR for review.

@leon-xd leon-xd marked this pull request as ready for review April 29, 2025 00:10
@leon-xd leon-xd requested review from ankurung and wmmc88 April 29, 2025 00:11
@wmmc88
Copy link
Collaborator

wmmc88 commented Apr 29, 2025

@leon-xd do you have an accompanying pr for the samples repo?

wmmc88
wmmc88 previously approved these changes Apr 29, 2025
Copy link
Collaborator

@wmmc88 wmmc88 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the future, it might be sufficient to remove the versions from the path-dependencies that are not published (ie. all the samples in examples folder + all the tests

ankurung
ankurung previously approved these changes Apr 29, 2025
@leon-xd leon-xd dismissed stale reviews from ankurung and wmmc88 via 8cf82c2 April 29, 2025 16:52
ankurung
ankurung previously approved these changes Apr 29, 2025
wmmc88
wmmc88 previously approved these changes Apr 29, 2025
@leon-xd leon-xd dismissed stale reviews from wmmc88 and ankurung via 812c3a9 April 29, 2025 20:38
@leon-xd
Copy link
Contributor Author

leon-xd commented Apr 29, 2025

@leon-xd do you have an accompanying pr for the samples repo?

This is coming after I publish the release to crates.io, since the samples link to the published versions of our crates.

ankurung
ankurung previously approved these changes Apr 29, 2025
@leon-xd leon-xd added this pull request to the merge queue Apr 30, 2025
Merged via the queue into main with commit 6d82775 Apr 30, 2025
121 checks passed
@leon-xd leon-xd deleted the release-plz-2025-04-18T18-05-49Z branch April 30, 2025 16:49
kehan-zhou pushed a commit to kehan-zhou/windows-drivers-rs that referenced this pull request May 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants