allow rocksdb_ in C API

master
Niko PLP 8 months ago
parent 80be46d1ee
commit 4a62adfbaf
  1. 3
      librocksdb-sys/build.rs
  2. 1
      librocksdb-sys/src/lib.rs

@ -37,6 +37,9 @@ fn bindgen_rocksdb() {
.blocklist_type("max_align_t") // https://github.com/rust-lang-nursery/rust-bindgen/issues/550
.ctypes_prefix("libc")
.size_t_is_usize(true)
.allowlist_function("rocksdb_.*")
.allowlist_type("rocksdb_.*")
.allowlist_var("rocksdb_.*")
.generate()
.expect("unable to generate rocksdb bindings");

@ -16,6 +16,7 @@
#![allow(non_camel_case_types)]
#![allow(non_snake_case)]
#![allow(non_upper_case_globals)]
#![allow(deref_nullptr)]
// Ensure the libraries are linked in, despite it not being used directly
#[cfg(feature = "bzip2")]

Loading…
Cancel
Save