|
|
@ -24,6 +24,9 @@ fn bindgen_rocksdb() { |
|
|
|
.header("api/c.h") |
|
|
|
.header("api/c.h") |
|
|
|
.ctypes_prefix("libc") |
|
|
|
.ctypes_prefix("libc") |
|
|
|
.size_t_is_usize(true) |
|
|
|
.size_t_is_usize(true) |
|
|
|
|
|
|
|
.allowlist_function("rocksdb_.*") |
|
|
|
|
|
|
|
.allowlist_type("rocksdb_.*") |
|
|
|
|
|
|
|
.allowlist_var("rocksdb_.*") |
|
|
|
.generate() |
|
|
|
.generate() |
|
|
|
.expect("unable to generate rocksdb bindings") |
|
|
|
.expect("unable to generate rocksdb bindings") |
|
|
|
.write_to_file(PathBuf::from(env::var("OUT_DIR").unwrap()).join("bindings.rs")) |
|
|
|
.write_to_file(PathBuf::from(env::var("OUT_DIR").unwrap()).join("bindings.rs")) |
|
|
|