Skip to content

Commit

Permalink
Update target lib files (#1488)
Browse files Browse the repository at this point in the history
Co-authored-by: Rafael Rivera <rafael@withinwindows.com>
  • Loading branch information
kennykerr and riverar committed Feb 1, 2022
1 parent cd0d294 commit 3c3c5b9
Show file tree
Hide file tree
Showing 11 changed files with 44 additions and 0 deletions.
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));
}
}

0 comments on commit 3c3c5b9

Please sign in to comment.