added some linking config for macos

master
Niko PLP 4 weeks ago
parent cedbf494b4
commit 9a1595d5cb
  1. 2
      librocksdb-sys/build.rs
  2. 2
      src/env.rs

@ -11,6 +11,8 @@ fn link(name: &str, bundled: bool) {
let dir = var("CARGO_MANIFEST_DIR").unwrap();
println!("cargo:rustc-link-search=native={}/{}", dir, target[0]);
}
} else if target.get(2) == Some(&"darwin") {
println!("cargo:rustc-link-arg=-mmacosx-version-min=10.14");
}
}

@ -49,7 +49,7 @@ impl Env {
}
}
/// Returns encrypted env. they key must be a 32 bytes long array of u8
/// Returns encrypted env. the key must be a 32 bytes long array of u8
pub fn enc_env(key: [u8; 32]) -> Result<Self, Error> {
let env = unsafe { ffi::rocksdb_create_encrypted_env(opt_bytes_to_ptr(Some(&key))) };
if env.is_null() {

Loading…
Cancel
Save