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

fix!: prevent linking of wdk libraries in tests that depend on wdk-sys #118

Merged
merged 4 commits into from
Mar 6, 2024

Conversation

wmmc88
Copy link
Collaborator

@wmmc88 wmmc88 commented Feb 29, 2024

BREAKING CHANGES: wdk_build::Config::configure_binary_build now returns a wdk_build::ConfigError instead of ().

This fixes execution of wdk-sys test in certain environments(ie. github windows runners) and should also allow crates that depend on wdk-sys to compile and run unit tests without linking against kernel libraries.

@wmmc88 wmmc88 self-assigned this Feb 29, 2024
@wmmc88 wmmc88 requested review from hamzamust, rajavenms and a team February 29, 2024 00:42
BREAKING CHANGES: wdk_build::Config::configure_binary_build now returns a wdk_build::ConfigError instead of ().
@wmmc88 wmmc88 force-pushed the fix-wdk-sys-ci-tests branch from 4c898cf to 499f6dc Compare February 29, 2024 00:42
@wmmc88 wmmc88 changed the title fix!: prevent linking of wdk-libraries in tests fix!: prevent linking of wdk libraries in tests that depend on wdk-sys Feb 29, 2024
rajavenms
rajavenms previously approved these changes Mar 5, 2024
@wmmc88 wmmc88 marked this pull request as ready for review March 5, 2024 18:07
@wmmc88 wmmc88 enabled auto-merge March 5, 2024 23:24
@wmmc88 wmmc88 added this pull request to the merge queue Mar 6, 2024
Merged via the queue into microsoft:main with commit 45811e3 Mar 6, 2024
48 checks passed
@wmmc88 wmmc88 deleted the fix-wdk-sys-ci-tests branch March 6, 2024 19:36
wmmc88 added a commit to wmmc88/windows-drivers-rs that referenced this pull request Apr 8, 2024
* refactor: add lint exceptions for clippy::manual_c_str_literals and clippy::ref_as_ptr (microsoft#108)

* ci: fix various pipeline breakages (nightly rustfmt bug, new nightly clippy lints, upstream winget dependency issue) (microsoft#117)

* docs: fix `winget` llvm install command option (microsoft#115)

Signed-off-by: Nicholas Rishel <rishel.nick@gmail.com>
Co-authored-by: Melvin Wang <melvin.mc.wang@gmail.com>

* fix!: prevent linking of wdk libraries in tests that depend on `wdk-sys` (microsoft#118)

* refactor: change version bounds for `manual_c_str_literals` and `ref_as_ptr` clippy lints (microsoft#127)

Signed-off-by: Melvin Wang <melvin.mc.wang@gmail.com>

* Revert "Fix wdk sys ci tests (#23)"

This reverts commit 165f26a.

---------

Signed-off-by: Nicholas Rishel <rishel.nick@gmail.com>
Signed-off-by: Melvin Wang <melvin.mc.wang@gmail.com>
Co-authored-by: Nicholas Rishel <rishel.nick@gmail.com>
@wmmc88 wmmc88 mentioned this pull request Sep 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants