File tree Expand file tree Collapse file tree 2 files changed +0
-7
lines changed Expand file tree Collapse file tree 2 files changed +0
-7
lines changed Original file line number Diff line number Diff line change @@ -5,18 +5,12 @@ use std::vec::Vec;
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
1411 let mut parser = build_utils:: DeriveAdderParserCallback :: new ( ) ;
1512 parser. register_traits ( "cmd_hdr" , borsh_derives. to_vec ( ) ) ;
1613 parser. register_traits ( "pc_acc" , borsh_derives. to_vec ( ) ) ;
17- //make a parser and to it type, traits pairs
18- let mut parser = build_utils:: DeriveAdderParserCallback :: new ( ) ;
19- parser. register_traits ( "cmd_hdr" , borsh_derives) ;
2014
2115 //generate and write bindings
2216 let bindings = Builder :: default ( )
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