From 7c69ee5bfc70e13fbaab2386882558074cec9cb9 Mon Sep 17 00:00:00 2001 From: Tpt Date: Mon, 8 Nov 2021 17:14:09 +0100 Subject: [PATCH] Reduces RocksDB bindings size --- rocksdb-sys/build.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/rocksdb-sys/build.rs b/rocksdb-sys/build.rs index 96af8168..ec19c93b 100644 --- a/rocksdb-sys/build.rs +++ b/rocksdb-sys/build.rs @@ -24,6 +24,9 @@ fn bindgen_rocksdb() { .header("api/c.h") .ctypes_prefix("libc") .size_t_is_usize(true) + .allowlist_function("rocksdb_.*") + .allowlist_type("rocksdb_.*") + .allowlist_var("rocksdb_.*") .generate() .expect("unable to generate rocksdb bindings") .write_to_file(PathBuf::from(env::var("OUT_DIR").unwrap()).join("bindings.rs"))