File tree Expand file tree Collapse file tree 4 files changed +10
-29
lines changed Expand file tree Collapse file tree 4 files changed +10
-29
lines changed Original file line number Diff line number Diff line change @@ -3,3 +3,6 @@ name = "tool_core"
33version = " 0.0.0"
44edition = " 2021"
55publish = false
6+
7+ [dependencies .windows-bindgen ]
8+ path = " ../../libs/bindgen"
Original file line number Diff line number Diff line change 1- --in crates/libs/metadata/default
21--out crates/libs/core/src/imp/bindings.rs
3- --config FLATTEN SYS MINIMAL
2+ --config flatten sys minimal
43
54--filter
65 Windows.Win32.Foundation.CloseHandle
Original file line number Diff line number Diff line change 1- --in crates/libs/metadata/default
21--out crates/libs/core/src/imp/com_bindings.rs
3- --config FLATTEN MINIMAL
2+ --config flatten minimal
43
54--filter
65 Windows.Foundation.IReference
Original file line number Diff line number Diff line change 1- fn main ( ) {
2- let mut command = std:: process:: Command :: new ( "cargo" ) ;
1+ use windows_bindgen:: * ;
32
4- command. args ( [
5- "run" ,
6- "-p" ,
7- "riddle" ,
8- "--" ,
9- "--etc" ,
10- "crates/tools/core/bindings.txt" ,
11- ] ) ;
12-
13- assert ! ( command. status( ) . unwrap( ) . success( ) ) ;
14-
15- let mut command = std:: process:: Command :: new ( "cargo" ) ;
16-
17- command. args ( [
18- "run" ,
19- "-p" ,
20- "riddle" ,
21- "--" ,
22- "--etc" ,
23- "crates/tools/core/com_bindings.txt" ,
24- ] ) ;
25-
26- assert ! ( command. status( ) . unwrap( ) . success( ) ) ;
3+ fn main ( ) -> Result < ( ) > {
4+ bindgen ( [ "--etc" , "crates/tools/core/bindings.txt" ] ) ?;
5+ bindgen ( [ "--etc" , "crates/tools/core/com_bindings.txt" ] ) ?;
6+ Ok ( ( ) )
277}
You can’t perform that action at this time.
0 commit comments