Skip to content

Commit

Permalink
Fix spurious rebuilds for aerospike sink (#2334)
Browse files Browse the repository at this point in the history
The default bindgen cargo hooks hook on code generated by the build
script, which means `aerospike-client-sys` will always rebuild. This
commit changes that to use the original sources instead for checking for
changes.
Jesse-Bakker authored Jan 19, 2024
1 parent 1a032f5 commit 5e42c57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dozer-sink-aerospike/aerospike-client-sys/build.rs
Original file line number Diff line number Diff line change
@@ -57,9 +57,9 @@ fn main() {
println!("cargo:rustc-link-lib=pthread");

println!("cargo:rerun-if-changed=aerospike_client.h");
println!("cargo:rerun-if-changed=aerospike-client-c");
let bindings = bindgen::Builder::default()
.header("aerospike_client.h")
.parse_callbacks(Box::new(bindgen::CargoCallbacks))
.allowlist_type("(as|aerospike)_.*")
.allowlist_type("aerospike")
.allowlist_function("(as|aerospike)_.*")

0 comments on commit 5e42c57

Please sign in to comment.