Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat!: expand wdk-sys coverage to include hid-related headers #260

Open
wants to merge 24 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
88ff017
add _KERNEL_MODE flag to clang parsing
wmmc88 Sep 28, 2023
07f1222
add initial pass of hid apis
wmmc88 Sep 28, 2023
c52b2f3
fix merge conflict
wmmc88 Sep 23, 2024
0915e18
Merge remote-tracking branch 'upstream/main' into hid
wmmc88 Oct 7, 2024
b14bdf3
Merge remote-tracking branch 'upstream/main' into hid
wmmc88 Oct 7, 2024
a1a4bf1
refactor wdk_default to not require header files on disk
wmmc88 Oct 15, 2024
af52971
Merge remote-tracking branch 'upstream/main' into hid
wmmc88 Nov 9, 2024
5a93995
refactor to have a single header for bindgen to process
wmmc88 Jan 10, 2025
951c26f
cargo fmt
wmmc88 Jan 10, 2025
9909386
add missing EOL
wmmc88 Jan 10, 2025
38d4b5f
refactor implementation so that apis are always available to `wdk_bui…
wmmc88 Jan 16, 2025
6b6b080
update workflows to use --all-features flag for Cargo commands
wmmc88 Jan 16, 2025
bf2acfb
Merge remote-tracking branch 'upstream/main' into hid
wmmc88 Jan 16, 2025
e777268
resolve clippy errors
wmmc88 Jan 22, 2025
f4f3a40
enable all-features for local cargo make flow
wmmc88 Jan 22, 2025
1e93870
fix rustdoc lint
wmmc88 Jan 22, 2025
826a4bc
refactor!: rename get_include_paths, get_library_paths, and get_prep…
wmmc88 Jan 22, 2025
5783dbf
Merge remote-tracking branch 'upstream/main' into hid
wmmc88 Jan 22, 2025
8e4e4bb
fix formatting
wmmc88 Jan 22, 2025
c02f27a
fix rustdoc error
wmmc88 Jan 22, 2025
5e50505
remove double inclusion of --all-features when invoking cargo make in CI
wmmc88 Jan 22, 2025
7cf3623
address pr comments
wmmc88 Jan 23, 2025
90a52c2
remove redundant -D warnings
wmmc88 Jan 23, 2025
852532a
fix link
wmmc88 Jan 26, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
cargo fmt
  • Loading branch information
wmmc88 committed Jan 10, 2025
commit 951c26f95ac46f4d344b79c121dcaf5bac4d9b46
7 changes: 4 additions & 3 deletions examples/sample-kmdf-driver/src/lib.rs
Original file line number Diff line number Diff line change
@@ -135,9 +135,10 @@ pub unsafe extern "system" fn driver_entry(
// of the slice must be no larger than `isize::MAX`. This is proven by the below
// `debug_assert!`.
unsafe {
debug_assert!(
isize::try_from(number_of_slice_elements * core::mem::size_of::<WCHAR>()).is_ok()
);
debug_assert!(isize::try_from(
number_of_slice_elements * core::mem::size_of::<WCHAR>()
)
.is_ok());
slice::from_raw_parts(registry_path.Buffer, number_of_slice_elements)
},
);
7 changes: 4 additions & 3 deletions examples/sample-umdf-driver/src/lib.rs
Original file line number Diff line number Diff line change
@@ -120,9 +120,10 @@ pub unsafe extern "system" fn driver_entry(
// of the slice must be no larger than `isize::MAX`. This is proven by the below
// `debug_assert!`.
unsafe {
debug_assert!(
isize::try_from(number_of_slice_elements * core::mem::size_of::<WCHAR>()).is_ok()
);
debug_assert!(isize::try_from(
number_of_slice_elements * core::mem::size_of::<WCHAR>()
)
.is_ok());
slice::from_raw_parts(registry_path.Buffer, number_of_slice_elements)
},
);
7 changes: 4 additions & 3 deletions tests/mixed-package-kmdf-workspace/crates/driver/src/lib.rs
Original file line number Diff line number Diff line change
@@ -133,9 +133,10 @@ pub unsafe extern "system" fn driver_entry(
// of the slice must be no larger than `isize::MAX`. This is proven by the below
// `debug_assert!`.
unsafe {
debug_assert!(
isize::try_from(number_of_slice_elements * core::mem::size_of::<WCHAR>()).is_ok()
);
debug_assert!(isize::try_from(
number_of_slice_elements * core::mem::size_of::<WCHAR>()
)
.is_ok());
slice::from_raw_parts(registry_path.Buffer, number_of_slice_elements)
},
);
7 changes: 4 additions & 3 deletions tests/umdf-driver-workspace/crates/driver_1/src/lib.rs
Original file line number Diff line number Diff line change
@@ -120,9 +120,10 @@ pub unsafe extern "system" fn driver_entry(
// of the slice must be no larger than `isize::MAX`. This is proven by the below
// `debug_assert!`.
unsafe {
debug_assert!(
isize::try_from(number_of_slice_elements * core::mem::size_of::<WCHAR>()).is_ok()
);
debug_assert!(isize::try_from(
number_of_slice_elements * core::mem::size_of::<WCHAR>()
)
.is_ok());
slice::from_raw_parts(registry_path.Buffer, number_of_slice_elements)
},
);
7 changes: 4 additions & 3 deletions tests/umdf-driver-workspace/crates/driver_2/src/lib.rs
Original file line number Diff line number Diff line change
@@ -120,9 +120,10 @@ pub unsafe extern "system" fn driver_entry(
// of the slice must be no larger than `isize::MAX`. This is proven by the below
// `debug_assert!`.
unsafe {
debug_assert!(
isize::try_from(number_of_slice_elements * core::mem::size_of::<WCHAR>()).is_ok()
);
debug_assert!(isize::try_from(
number_of_slice_elements * core::mem::size_of::<WCHAR>()
)
.is_ok());
slice::from_raw_parts(registry_path.Buffer, number_of_slice_elements)
},
);