From 0c21f91c1671b01d102a0a668377e33b62d90a55 Mon Sep 17 00:00:00 2001 From: Will Jones Date: Mon, 12 Feb 2024 10:07:09 -0800 Subject: [PATCH] fix(node): statically link lzma (#961) Fixes #956 Same changes as https://github.com/lancedb/lance/pull/1934 --- nodejs/Cargo.toml | 3 +++ rust/ffi/node/Cargo.toml | 3 +++ 2 files changed, 6 insertions(+) diff --git a/nodejs/Cargo.toml b/nodejs/Cargo.toml index d58fd15d..740e34ef 100644 --- a/nodejs/Cargo.toml +++ b/nodejs/Cargo.toml @@ -23,5 +23,8 @@ napi = { version = "2.15", default-features = false, features = [ ] } napi-derive = "2" +# Prevent dynamic linking of lzma, which comes from datafusion +lzma-sys = { version = "*", features = ["static"] } + [build-dependencies] napi-build = "2.1" diff --git a/rust/ffi/node/Cargo.toml b/rust/ffi/node/Cargo.toml index 7d37f50f..cc1d5deb 100644 --- a/rust/ffi/node/Cargo.toml +++ b/rust/ffi/node/Cargo.toml @@ -31,3 +31,6 @@ object_store = { workspace = true, features = ["aws"] } snafu = { workspace = true } async-trait = "0" env_logger = "0" + +# Prevent dynamic linking of lzma, which comes from datafusion +lzma-sys = { version = "*", features = ["static"] }