From 30beb2023076e073d666f620899f94443577ed4c Mon Sep 17 00:00:00 2001 From: strawberry Date: Sat, 25 May 2024 20:00:52 -0400 Subject: [PATCH] conditionally static link rust-rocksdb-uwu by hot reload cfg Signed-off-by: strawberry --- deps/rust-rocksdb/Cargo.toml | 3 +++ deps/rust-rocksdb/lib.rs | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/deps/rust-rocksdb/Cargo.toml b/deps/rust-rocksdb/Cargo.toml index f5e3211e..1a39281d 100644 --- a/deps/rust-rocksdb/Cargo.toml +++ b/deps/rust-rocksdb/Cargo.toml @@ -30,3 +30,6 @@ crate-type = [ "rlib", # "dylib" ] + +[lints] +workspace = true diff --git a/deps/rust-rocksdb/lib.rs b/deps/rust-rocksdb/lib.rs index ae11159e..298904df 100644 --- a/deps/rust-rocksdb/lib.rs +++ b/deps/rust-rocksdb/lib.rs @@ -1,6 +1,7 @@ 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" { pub fn rocksdb_list_column_families(); pub fn rocksdb_logger_create_stderr_logger();