We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5871ab8 commit ec94b78Copy full SHA for ec94b78
program/rust/build.rs
@@ -5,12 +5,13 @@ use std::vec::Vec;
5
fn main() {
6
println!("cargo:rustc-link-search=../c/target");
7
8
- let borsh_derives: Vec<String> =
9
- vec!["BorshSerialize".to_string(), "BorshDeserialize".to_string()];
+ let borsh_derives = ["BorshSerialize".to_string(), "BorshDeserialize".to_string()];
10
11
//make a parser and to it type, traits pairs
12
let mut parser = build_utils::DeriveAdderParserCallback::new();
13
- parser.register_traits("cmd_hdr", borsh_derives);
+ parser.register_traits("cmd_hdr", borsh_derives.to_vec());
+ parser.register_traits("pc_acc", borsh_derives.to_vec());
14
+
15
16
//generate and write bindings
17
let bindings = Builder::default()
0 commit comments