allow rocksdb_ in C API

master
Niko PLP 5 months ago
parent 80be46d1ee
commit 4a62adfbaf
  1. 3
      librocksdb-sys/build.rs
  2. 3
      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")]
@ -24,7 +25,7 @@ extern crate bzip2_sys;
extern crate libz_sys;
#[cfg(feature = "lz4")]
extern crate lz4_sys;
#[cfg(not(any(target_os = "linux", target_os = "macos",target_os="openbsd")))]
#[cfg(not(any(target_os = "linux", target_os = "macos", target_os = "openbsd")))]
extern crate openssl;
#[cfg(feature = "zstd")]
extern crate zstd_sys;

Loading…
Cancel
Save