You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
let borsh_derives:Vec<String> = vec!["BorshSerialize".to_string(),"BorshDeserialize".to_string()];
11
+
12
+
let parser = build_utils::DeriveAdderParserCallback{types_to_traits:HashMap::from([
13
+
("cmd_hdr", borsh_derives)
14
+
//map more struct names to traits here, be sure that the definitions of your traites
15
+
//are included in c_oracle_header.rs
16
+
])};
17
+
18
+
//generate and write bindings
19
+
let bindings = bindgen::Builder::default().header("./src/bindings.h").parse_callbacks(Box::new(parser)).generate().expect("Unable to generate bindings");
0 commit comments