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

Update target lib files #1488

Merged
merged 5 commits into from Feb 1, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/build.yml
Expand Up @@ -126,6 +126,7 @@ jobs:
cargo clippy -p test_lib &&
cargo clippy -p test_matrix3x2 &&
cargo clippy -p test_mshtml &&
cargo clippy -p test_not_dll &&
cargo clippy -p test_ntstatus &&
cargo clippy -p test_pwstr &&
cargo clippy -p test_return_struct &&
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/test.yml
Expand Up @@ -86,6 +86,7 @@ jobs:
cargo test --target ${{ matrix.target }} -p test_lib &&
cargo test --target ${{ matrix.target }} -p test_matrix3x2 &&
cargo test --target ${{ matrix.target }} -p test_mshtml &&
cargo test --target ${{ matrix.target }} -p test_not_dll &&
cargo test --target ${{ matrix.target }} -p test_ntstatus &&
cargo test --target ${{ matrix.target }} -p test_pwstr &&
cargo test --target ${{ matrix.target }} -p test_return_struct &&
Expand Down
Binary file modified crates/targets/aarch64_msvc/lib/windows.lib
Binary file not shown.
Binary file modified crates/targets/i686_gnu/lib/libwindows.a
Binary file not shown.
Binary file modified crates/targets/i686_msvc/lib/windows.lib
Binary file not shown.
Binary file modified crates/targets/x86_64_gnu/lib/libwindows.a
Binary file not shown.
Binary file modified crates/targets/x86_64_msvc/lib/windows.lib
Binary file not shown.
21 changes: 21 additions & 0 deletions crates/tests/not_dll/Cargo.toml
@@ -0,0 +1,21 @@
[package]
name = "test_not_dll"
version = "0.0.0"
authors = ["Microsoft"]
edition = "2018"

[dependencies.windows]
path = "../../libs/windows"
features = [
"Win32_Graphics_Printing",
"Win32_Foundation",
"Win32_Graphics_Gdi",
]

[dependencies.windows-sys]
path = "../../libs/sys"
features = [
"Win32_Graphics_Printing",
"Win32_Foundation",
"Win32_Graphics_Gdi",
]
1 change: 1 addition & 0 deletions crates/tests/not_dll/src/lib.rs
@@ -0,0 +1 @@

10 changes: 10 additions & 0 deletions crates/tests/not_dll/tests/sys.rs
@@ -0,0 +1,10 @@
use windows_sys::Win32::Graphics::Printing::*;

// Validates that the target libs resolve this function to "winspool.drv"

#[test]
fn test() {
unsafe {
GetSpoolFileHandle(0);
}
}
10 changes: 10 additions & 0 deletions crates/tests/not_dll/tests/win.rs
@@ -0,0 +1,10 @@
use windows::{Win32::Foundation::*, Win32::Graphics::Printing::*};

// Validates that the target libs resolve this function to "winspool.drv"

#[test]
fn test() {
unsafe {
GetSpoolFileHandle(HANDLE(0));
}
}