Skip to content

Commit 6d82775

Browse files
leon-xdleon-xd
andauthored
chore: april 2025 release (#343)
Co-authored-by: leon-xd <[email protected]>
1 parent 790c824 commit 6d82775

File tree

35 files changed

+338
-238
lines changed

35 files changed

+338
-238
lines changed

Cargo.lock

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,12 @@ license = "MIT OR Apache-2.0"
2929

3030
[workspace.dependencies]
3131
# Workspace Crates
32-
wdk = { path = "crates/wdk", version = "0.3.0" }
33-
wdk-alloc = { path = "crates/wdk-alloc", version = "0.3.0" }
34-
wdk-build = { path = "crates/wdk-build", version = "0.3.0" }
35-
wdk-macros = { path = "crates/wdk-macros", version = "0.3.0" }
36-
wdk-panic = { path = "crates/wdk-panic", version = "0.3.0" }
37-
wdk-sys = { path = "crates/wdk-sys", version = "0.3.0" }
32+
wdk = { path = "crates/wdk", version = "0.3.1" }
33+
wdk-alloc = { path = "crates/wdk-alloc", version = "0.3.1" }
34+
wdk-build = { path = "crates/wdk-build", version = "0.4.0" }
35+
wdk-macros = { path = "crates/wdk-macros", version = "0.4.0" }
36+
wdk-panic = { path = "crates/wdk-panic", version = "0.3.1" }
37+
wdk-sys = { path = "crates/wdk-sys", version = "0.4.0" }
3838

3939
# External Crates
4040
anyhow = "1.0.97"

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ The crates in this repository are available from [`crates.io`](https://crates.io
147147
#!@rust
148148
//! ```cargo
149149
//! [dependencies]
150-
//! wdk-build = "0.3.0"
150+
//! wdk-build = "0.4.0"
151151
//! ```
152152
#![allow(unused_doc_comments)]
153153

crates/wdk-alloc/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

77

8+
## [0.3.1](https://github.com/microsoft/windows-drivers-rs/compare/wdk-alloc-v0.3.0...wdk-alloc-v0.3.1) - 2025-04-18
9+
10+
### Other
11+
12+
- update README to clarify community engagement and contact methods ([#312](https://github.com/microsoft/windows-drivers-rs/pull/312))
13+
814
## [0.3.0](https://github.com/microsoft/windows-drivers-rs/compare/wdk-alloc-v0.2.0...wdk-alloc-v0.3.0) - 2024-09-27
915

1016
### Added

crates/wdk-alloc/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
edition.workspace = true
33
name = "wdk-alloc"
4-
version = "0.3.0"
4+
version = "0.3.1"
55
description = "alloc support for binaries compiled with the Windows Development Kit (WDK)"
66
repository.workspace = true
77
readme.workspace = true

crates/wdk-build/CHANGELOG.md

Lines changed: 58 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,35 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

77

8+
## [0.4.0](https://github.com/microsoft/windows-drivers-rs/compare/wdk-build-v0.3.0...wdk-build-v0.4.0) - 2025-04-18
9+
10+
### Added
11+
12+
- extend coverage in `wdk-sys` to include usb-related headers ([#296](https://github.com/microsoft/windows-drivers-rs/pull/296))
13+
- expand wdk-sys coverage to include gpio and parallel ports related headers ([#278](https://github.com/microsoft/windows-drivers-rs/pull/278))
14+
- add support for Storage API subset in `wdk-sys` ([#287](https://github.com/microsoft/windows-drivers-rs/pull/287))
15+
- expand `wdk-sys` coverage to include spb-related headers ([#263](https://github.com/microsoft/windows-drivers-rs/pull/263))
16+
- [**breaking**] expand `wdk-sys` coverage to include hid-related headers ([#260](https://github.com/microsoft/windows-drivers-rs/pull/260))
17+
18+
### Fixed
19+
20+
- [**breaking**] specify rust version & edition to wdk-default bindgen::builder ([#314](https://github.com/microsoft/windows-drivers-rs/pull/314))
21+
- [**breaking**] explicitly mark `_KGDTENTRY64` and `_KIDTENTRY64` as opaque types in `bindgen` ([#277](https://github.com/microsoft/windows-drivers-rs/pull/277))
22+
- suppress linker warnings exposed by nightly rustc change ([#279](https://github.com/microsoft/windows-drivers-rs/pull/279))
23+
- add missing arm64rt library to linker flags for arm64 kernel-mode builds ([#261](https://github.com/microsoft/windows-drivers-rs/pull/261))
24+
25+
### Other
26+
27+
- update README to clarify community engagement and contact methods ([#312](https://github.com/microsoft/windows-drivers-rs/pull/312))
28+
- remove noop `must_use` on trait impl ([#302](https://github.com/microsoft/windows-drivers-rs/pull/302))
29+
- [**breaking**] Remove lazy static instances ([#250](https://github.com/microsoft/windows-drivers-rs/pull/250))
30+
- fix panic condition docs for `package_driver_flow_condition_script` ([#264](https://github.com/microsoft/windows-drivers-rs/pull/264))
31+
- port certificate-generation condition script to Rust ([#259](https://github.com/microsoft/windows-drivers-rs/pull/259))
32+
- remove redundant code-path in `detect_wdk_content_root` ([#249](https://github.com/microsoft/windows-drivers-rs/pull/249))
33+
- 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))
34+
- 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))
35+
- fix `clippy::nonminimal_bool` and `clippy::ref_option` issues ([#230](https://github.com/microsoft/windows-drivers-rs/pull/230))
36+
837
## [0.3.0](https://github.com/microsoft/windows-drivers-rs/compare/wdk-build-v0.2.0...wdk-build-v0.3.0) - 2024-09-27
938

1039
### Added
@@ -39,32 +68,32 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
3968
- fix `winget` llvm install command option ([#115](https://github.com/microsoft/windows-drivers-rs/pull/115))
4069
- 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))
4170
- add lint exceptions for clippy::manual_c_str_literals and clippy::ref_as_ptr ([#108](https://github.com/microsoft/windows-drivers-rs/pull/108))
42-
# Changelog
43-
All notable changes to this project will be documented in this file.
44-
45-
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
46-
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
47-
48-
49-
## [0.2.0](https://github/microsoft/windows-drivers-rs/compare/wdk-build-v0.1.0...wdk-build-v0.2.0) - 2024-02-08
50-
51-
### Added
52-
- package rust-driver-makefile.toml with wdk-build package ([#36](https://github/microsoft/windows-drivers-rs/pull/36))
53-
- support multiple drivers (of same type) in same cargo workspace
54-
- cargo-make argument forwarding
55-
- generate CStr for c string constants instead of &[u8] ([#72](https://github/microsoft/windows-drivers-rs/pull/72))
56-
57-
### Fixed
58-
- resolve warnings in rust-script blocks and only fail warnings in CI ([#87](https://github/microsoft/windows-drivers-rs/pull/87))
59-
- add missing cpu-arch macro defintions
60-
- fix wdk path regkey detection
61-
62-
### Other
63-
- update versions in readme and rust-driver-makefile.toml
64-
- update dependencies
65-
- allow multiple_crate_versions in wdk-build (build dependency) ([#98](https://github/microsoft/windows-drivers-rs/pull/98))
66-
- update cargo-make tasks with arch-specific tools
67-
- Bump thiserror from 1.0.48 to 1.0.55 ([#59](https://github/microsoft/windows-drivers-rs/pull/59))
68-
- restrict to one unsafe operation per block ([#24](https://github/microsoft/windows-drivers-rs/pull/24))
69-
- [**breaking**] enable rustdoc lints and resolve errors
70-
- initial open-source check in
71+
# Changelog
72+
All notable changes to this project will be documented in this file.
73+
74+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
75+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
76+
77+
78+
## [0.2.0](https://github/microsoft/windows-drivers-rs/compare/wdk-build-v0.1.0...wdk-build-v0.2.0) - 2024-02-08
79+
80+
### Added
81+
- package rust-driver-makefile.toml with wdk-build package ([#36](https://github/microsoft/windows-drivers-rs/pull/36))
82+
- support multiple drivers (of same type) in same cargo workspace
83+
- cargo-make argument forwarding
84+
- generate CStr for c string constants instead of &[u8] ([#72](https://github/microsoft/windows-drivers-rs/pull/72))
85+
86+
### Fixed
87+
- resolve warnings in rust-script blocks and only fail warnings in CI ([#87](https://github/microsoft/windows-drivers-rs/pull/87))
88+
- add missing cpu-arch macro defintions
89+
- fix wdk path regkey detection
90+
91+
### Other
92+
- update versions in readme and rust-driver-makefile.toml
93+
- update dependencies
94+
- allow multiple_crate_versions in wdk-build (build dependency) ([#98](https://github/microsoft/windows-drivers-rs/pull/98))
95+
- update cargo-make tasks with arch-specific tools
96+
- Bump thiserror from 1.0.48 to 1.0.55 ([#59](https://github/microsoft/windows-drivers-rs/pull/59))
97+
- restrict to one unsafe operation per block ([#24](https://github/microsoft/windows-drivers-rs/pull/24))
98+
- [**breaking**] enable rustdoc lints and resolve errors
99+
- initial open-source check in

crates/wdk-build/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
edition.workspace = true
33
rust-version.workspace = true
44
name = "wdk-build"
5-
version = "0.3.0"
5+
version = "0.4.0"
66
description = "A library to configure a Cargo build script for binding generation and downstream linking of the WDK (Windows Driver Kit)"
77
repository.workspace = true
88
readme.workspace = true

crates/wdk-build/rust-driver-makefile.toml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ script_runner = "@rust"
122122
script = '''
123123
//! ```cargo
124124
//! [dependencies]
125-
//! wdk-build = { path = ".", version = "0.3.0" }
125+
//! wdk-build = { path = ".", version = "0.4.0" }
126126
//! ```
127127
#![allow(unused_doc_comments)]
128128
@@ -148,7 +148,7 @@ script_runner_args = [
148148
script = '''
149149
//! ```cargo
150150
//! [dependencies]
151-
//! wdk-build = { path = ".", version = "0.3.0" }
151+
//! wdk-build = { path = ".", version = "0.4.0" }
152152
//! ```
153153
#![allow(unused_doc_comments)]
154154
@@ -178,7 +178,7 @@ script_runner_args = [
178178
script = '''
179179
//! ```cargo
180180
//! [dependencies]
181-
//! wdk-build = { path = ".", version = "0.3.0" }
181+
//! wdk-build = { path = ".", version = "0.4.0" }
182182
//! ```
183183
#![allow(unused_doc_comments)]
184184
@@ -224,7 +224,7 @@ condition_script = '''
224224
225225
//! ```cargo
226226
//! [dependencies]
227-
//! wdk-build = { path = ".", version = "0.3.0" }
227+
//! wdk-build = { path = ".", version = "0.4.0" }
228228
//! ```
229229
#![allow(unused_doc_comments)]
230230
@@ -247,7 +247,7 @@ script = '''
247247
248248
//! ```cargo
249249
//! [dependencies]
250-
//! wdk-build = { path = ".", version = "0.3.0" }
250+
//! wdk-build = { path = ".", version = "0.4.0" }
251251
//! ```
252252
#![allow(unused_doc_comments)]
253253
@@ -311,7 +311,7 @@ script_runner_args = [
311311
script = '''
312312
//! ```cargo
313313
//! [dependencies]
314-
//! wdk-build = { path = ".", version = "0.3.0" }
314+
//! wdk-build = { path = ".", version = "0.4.0" }
315315
//! ```
316316
#![allow(unused_doc_comments)]
317317
@@ -335,7 +335,7 @@ script_runner_args = [
335335
script = '''
336336
//! ```cargo
337337
//! [dependencies]
338-
//! wdk-build = { path = ".", version = "0.3.0" }
338+
//! wdk-build = { path = ".", version = "0.4.0" }
339339
//! ```
340340
#![allow(unused_doc_comments)]
341341
@@ -358,7 +358,7 @@ script_runner_args = [
358358
script = '''
359359
//! ```cargo
360360
//! [dependencies]
361-
//! wdk-build = { path = ".", version = "0.3.0" }
361+
//! wdk-build = { path = ".", version = "0.4.0" }
362362
//! ```
363363
#![allow(unused_doc_comments)]
364364
@@ -381,7 +381,7 @@ script_runner_args = [
381381
script = '''
382382
//! ```cargo
383383
//! [dependencies]
384-
//! wdk-build = { path = ".", version = "0.3.0" }
384+
//! wdk-build = { path = ".", version = "0.4.0" }
385385
//! ```
386386
#![allow(unused_doc_comments)]
387387
@@ -415,7 +415,7 @@ condition_script = '''
415415
416416
//! ```cargo
417417
//! [dependencies]
418-
//! wdk-build = { path = ".", version = "0.3.0" }
418+
//! wdk-build = { path = ".", version = "0.4.0" }
419419
//! anyhow = "1"
420420
//! ```
421421
#![allow(unused_doc_comments)]
@@ -450,7 +450,7 @@ script_runner_args = [
450450
script = '''
451451
//! ```cargo
452452
//! [dependencies]
453-
//! wdk-build = { path = ".", version = "0.3.0" }
453+
//! wdk-build = { path = ".", version = "0.4.0" }
454454
//! ```
455455
#![allow(unused_doc_comments)]
456456
@@ -536,7 +536,7 @@ condition_script = '''
536536
537537
//! ```cargo
538538
//! [dependencies]
539-
//! wdk-build = { path = ".", version = "0.3.0" }
539+
//! wdk-build = { path = ".", version = "0.4.0" }
540540
//! anyhow = "1"
541541
//! ```
542542
#![allow(unused_doc_comments)]

crates/wdk-build/rust-driver-sample-makefile.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ script_runner = "@rust"
1010
script = '''
1111
//! ```cargo
1212
//! [dependencies]
13-
//! wdk-build = { path = ".", version = "0.3.0" }
13+
//! wdk-build = { path = ".", version = "0.4.0" }
1414
//! ```
1515
#![allow(unused_doc_comments)]
1616
@@ -37,7 +37,7 @@ condition_script = '''
3737
3838
//! ```cargo
3939
//! [dependencies]
40-
//! wdk-build = { path = ".", version = "0.3.0" }
40+
//! wdk-build = { path = ".", version = "0.4.0" }
4141
//! anyhow = "1"
4242
//! ```
4343
#![allow(unused_doc_comments)]

crates/wdk-build/src/utils.rs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,9 @@ fn read_registry_key_string_value(
296296
// SAFETY: `&mut opened_key_handle` is coerced to a &raw mut, so the address passed as the
297297
// argument is always valid. `&mut opened_key_handle` is coerced to a pointer of the correct
298298
// type.
299-
unsafe { RegOpenKeyExA(key_handle, sub_key, 0, KEY_READ, &mut opened_key_handle) }.is_ok() {
299+
unsafe { RegOpenKeyExA(key_handle, sub_key, 0, KEY_READ, &raw mut opened_key_handle) }
300+
.is_ok()
301+
{
300302
if
301303
// SAFETY: `opened_key_handle` is valid key opened with the `KEY_QUERY_VALUE` access right
302304
// (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(
310312
RRF_RT_REG_SZ,
311313
None,
312314
None,
313-
Some(&mut len),
315+
Some(&raw mut len),
314316
)
315317
}
316318
.is_ok()
@@ -331,7 +333,7 @@ fn read_registry_key_string_value(
331333
RRF_RT_REG_SZ,
332334
None,
333335
Some(buffer.as_mut_ptr().cast()),
334-
Some(&mut len),
336+
Some(&raw mut len),
335337
)
336338
}
337339
.is_ok()

crates/wdk-macros/CHANGELOG.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,21 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

77

8+
## [0.4.0](https://github.com/microsoft/windows-drivers-rs/compare/wdk-macros-v0.3.0...wdk-macros-v0.4.0) - 2025-04-18
9+
10+
### Added
11+
12+
- Cache parameters & return type during `call_unsafe_wdf_function_binding` macro expansion ([#295](https://github.com/microsoft/windows-drivers-rs/pull/295))
13+
14+
### Fixed
15+
16+
- passing cache tests when WDK config is enabled ([#332](https://github.com/microsoft/windows-drivers-rs/pull/332))
17+
18+
### Other
19+
20+
- update README to clarify community engagement and contact methods ([#312](https://github.com/microsoft/windows-drivers-rs/pull/312))
21+
- [**breaking**] Remove lazy static instances ([#250](https://github.com/microsoft/windows-drivers-rs/pull/250))
22+
823
## [0.3.0](https://github.com/microsoft/windows-drivers-rs/compare/wdk-macros-v0.2.0...wdk-macros-v0.3.0) - 2024-09-27
924

1025
### Added

crates/wdk-macros/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
edition = "2021"
33
name = "wdk-macros"
4-
version = "0.3.0"
4+
version = "0.4.0"
55
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."
66
repository.workspace = true
77
readme.workspace = true

0 commit comments

Comments
 (0)