File tree Expand file tree Collapse file tree 2 files changed +1
-4
lines changed Expand file tree Collapse file tree 2 files changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -5,9 +5,6 @@ use bindgen::Builder;
55fn main ( ) {
66 println ! ( "cargo:rustc-link-search=../c/target" ) ;
77
8- let borsh_derives: Vec < String > =
9- vec ! [ "BorshSerialize" . to_string( ) , "BorshDeserialize" . to_string( ) ] ;
10-
118 let borsh_derives = [ "BorshSerialize" . to_string ( ) , "BorshDeserialize" . to_string ( ) ] ;
129
1310 //make a parser and to it type, traits pairs
@@ -17,6 +14,7 @@ fn main() {
1714 parser. register_traits ( "pc_price_info" , borsh_derives. to_vec ( ) ) ;
1815 parser. register_traits ( "cmd_upd_price" , borsh_derives. to_vec ( ) ) ;
1916
17+
2018 //generate and write bindings
2119 let bindings = Builder :: default ( )
2220 . header ( "./src/bindings.h" )
Original file line number Diff line number Diff line change 11use bindgen:: callbacks:: ParseCallbacks ;
22use std:: collections:: HashMap ;
33use std:: panic:: UnwindSafe ;
4- use std:: panic:: UnwindSafe ;
54
65///This type stores a hashmap from structnames
76///to vectors of trait names, and ensures
You can’t perform that action at this time.
0 commit comments