Reduces RocksDB bindings size

pull/171/head
Tpt 3 years ago
parent 569000b5ea
commit 7c69ee5bfc
  1. 3
      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"))

Loading…
Cancel
Save