conditionally static link rust-rocksdb-uwu by hot reload cfg

Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
strawberry 2024-05-25 20:00:52 -04:00 committed by June 🍓🦴
parent 19e7779693
commit 30beb20230
2 changed files with 5 additions and 1 deletions

View File

@ -30,3 +30,6 @@ crate-type = [
"rlib", "rlib",
# "dylib" # "dylib"
] ]
[lints]
workspace = true

View File

@ -1,6 +1,7 @@
pub use rust_rocksdb::*; pub use rust_rocksdb::*;
#[link(name = "rocksdb", kind = "static")] #[cfg_attr(not(conduit_mods), link(name = "rocksdb"))]
#[cfg_attr(conduit_mods, link(name = "rocksdb", kind = "static"))]
extern "C" { extern "C" {
pub fn rocksdb_list_column_families(); pub fn rocksdb_list_column_families();
pub fn rocksdb_logger_create_stderr_logger(); pub fn rocksdb_logger_create_stderr_logger();