summaryrefslogtreecommitdiff
path: root/rust-src/bch_bindgen/build.rs
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2023-02-28 02:11:05 -0500
committerKent Overstreet <kent.overstreet@linux.dev>2023-02-28 02:14:40 -0500
commitb6f30fd188b25d048e92e3b25abb28fbeb3f189f (patch)
tree5cc67477749f281d9e4fd0ec86a966cbb08694e9 /rust-src/bch_bindgen/build.rs
parent59528398cf367df1e84372946b7031a2e3eb2b7e (diff)
rust: BkeyValC
Now we have a rust-style enum for key types Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'rust-src/bch_bindgen/build.rs')
-rw-r--r--rust-src/bch_bindgen/build.rs11
1 files changed, 3 insertions, 8 deletions
diff --git a/rust-src/bch_bindgen/build.rs b/rust-src/bch_bindgen/build.rs
index 74497b81..8d9986f8 100644
--- a/rust-src/bch_bindgen/build.rs
+++ b/rust-src/bch_bindgen/build.rs
@@ -52,17 +52,12 @@ fn main() {
.allowlist_var("bch.*")
.allowlist_var("__BTREE_ITER.*")
.allowlist_var("BTREE_ITER.*")
- .allowlist_var("POS_MIN")
- .allowlist_var("POS_MAX")
- .allowlist_var("SPOS_MAX")
.blocklist_item("bch2_bkey_ops")
- .allowlist_type("bch_kdf_types")
- .allowlist_type("bch_sb_field_.*")
- .allowlist_type("bch_encrypted_key")
+ .allowlist_type("bch_.*")
.allowlist_type("nonce")
- .allowlist_type("bch_errcode")
- .allowlist_function("bch2_err_str")
+ .no_debug("bch_replicas_padded")
.newtype_enum("bch_kdf_types")
+ .rustified_enum("bch_key_types")
.opaque_type("gendisk")
.opaque_type("gc_stripe")
.opaque_type("open_bucket.*")