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 0fd6a16 commit 262e6c9Copy full SHA for 262e6c9
program/rust/build.rs
@@ -1,17 +1,12 @@
1
-mod build_utils;
2
use bindgen::Builder;
3
4
fn main() {
5
println!("cargo:rustc-link-search=./program/c/target");
6
7
- // Make a parser and to it type, traits pairs
8
- let parser = build_utils::DeriveAdderParserCallback::new();
9
-
10
// Generate and write bindings
11
let bindings = Builder::default()
12
.clang_arg("-I../../../solana/sdk/bpf/c/inc/")
13
.header("./src/bindings.h")
14
- .parse_callbacks(Box::new(parser))
15
.rustfmt_bindings(true)
16
.generate()
17
.expect("Unable to generate bindings");
program/rust/build_utils.rs
0 commit comments