Skip to content

Commit b4c358d

Browse files
committed
Add test
1 parent 6892ca0 commit b4c358d

File tree

7 files changed

+480
-2
lines changed

7 files changed

+480
-2
lines changed

.github/workflows/clippy.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -302,6 +302,8 @@ jobs:
302302
run: cargo clippy -p test_structs --tests
303303
- name: Check test_sys
304304
run: cargo clippy -p test_sys --tests
305+
- name: Check test_sys_fn_ptrs
306+
run: cargo clippy -p test_sys_fn_ptrs --tests
305307
- name: Check test_targets
306308
run: cargo clippy -p test_targets --tests
307309
- name: Check test_threading

.github/workflows/test.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -331,6 +331,8 @@ jobs:
331331
run: cargo test -p test_structs --target ${{ matrix.target }}
332332
- name: Test test_sys
333333
run: cargo test -p test_sys --target ${{ matrix.target }}
334+
- name: Test test_sys_fn_ptrs
335+
run: cargo test -p test_sys_fn_ptrs --target ${{ matrix.target }}
334336
- name: Test test_targets
335337
run: cargo test -p test_targets --target ${{ matrix.target }}
336338
- name: Test test_threading
@@ -359,10 +361,10 @@ jobs:
359361
run: cargo test -p tool_bindgen --target ${{ matrix.target }}
360362
- name: Test tool_bindings
361363
run: cargo test -p tool_bindings --target ${{ matrix.target }}
362-
- name: Test tool_gnu
363-
run: cargo test -p tool_gnu --target ${{ matrix.target }}
364364
- name: Clean
365365
run: cargo clean
366+
- name: Test tool_gnu
367+
run: cargo test -p tool_gnu --target ${{ matrix.target }}
366368
- name: Test tool_license
367369
run: cargo test -p tool_license --target ${{ matrix.target }}
368370
- name: Test tool_merge
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
[package]
2+
name = "test_sys_fn_ptrs"
3+
version = "0.0.0"
4+
edition = "2021"
5+
publish = false
6+
7+
[lib]
8+
doc = false
9+
doctest = false
10+
11+
[dependencies.windows-result]
12+
workspace = true
13+
14+
[dependencies.windows-strings]
15+
workspace = true
16+
17+
[dependencies.windows-link]
18+
workspace = true
19+
20+
[build-dependencies.windows-bindgen]
21+
workspace = true
22+
23+
[lints]
24+
workspace = true
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
fn main() {
2+
windows_bindgen::bindgen([
3+
"--out",
4+
"src/bindings.rs",
5+
"--filter",
6+
"WebAuthNAuthenticatorMakeCredential",
7+
"WebAuthNAuthenticatorGetAssertion",
8+
"LoadLibraryExA",
9+
"GetProcAddress",
10+
"FreeLibrary",
11+
"LOAD_LIBRARY_SEARCH_DEFAULT_DIRS",
12+
"--sys",
13+
"--sys-fn-ptrs",
14+
"--no-comment",
15+
"--no-deps",
16+
])
17+
.unwrap();
18+
}

0 commit comments

Comments
 (0)