From 9f131d998d3a6ffd4455bc2d3106b463c500b80b Mon Sep 17 00:00:00 2001 From: Winter Date: Mon, 8 Aug 2022 11:58:40 -0400 Subject: [PATCH] Allow using the system's copy of zstd for Polars (#6232) --- Cargo.lock | 2 ++ Cargo.toml | 1 + crates/nu-command/Cargo.toml | 2 ++ 3 files changed, 5 insertions(+) diff --git a/Cargo.lock b/Cargo.lock index b70ddd6c84..d19d1d78c0 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2678,6 +2678,7 @@ dependencies = [ "wax", "which", "windows", + "zstd", ] [[package]] @@ -5639,4 +5640,5 @@ checksum = "9fd07cbbc53846d9145dbffdf6dd09a7a0aa52be46741825f5c97bdd4f73f12b" dependencies = [ "cc", "libc", + "pkg-config", ] diff --git a/Cargo.toml b/Cargo.toml index 1cb1a31213..0683697fcf 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -93,6 +93,7 @@ trash-support = ["nu-command/trash-support"] # Dataframe feature for nushell dataframe = ["nu-command/dataframe"] +system-zstd = ["nu-command/system-zstd"] # Database commands for nushell database = ["nu-command/database"] diff --git a/crates/nu-command/Cargo.toml b/crates/nu-command/Cargo.toml index 40bf4e5b96..379f5b5544 100644 --- a/crates/nu-command/Cargo.toml +++ b/crates/nu-command/Cargo.toml @@ -89,6 +89,7 @@ reedline = { version = "0.9.0", features = ["bashisms", "sqlite"]} wax = { version = "0.5.0", features = ["diagnostics"] } rusqlite = { version = "0.28.0", features = ["bundled"], optional = true } sqlparser = { version = "0.16.0", features = ["serde"], optional = true } +zstd = { version = "*", optional = true } [target.'cfg(unix)'.dependencies] umask = "2.0.0" @@ -124,6 +125,7 @@ trash-support = ["trash"] which-support = ["which"] plugin = ["nu-parser/plugin"] dataframe = ["polars", "num"] +system-zstd = ["zstd/pkg-config"] database = ["sqlparser", "rusqlite"] [build-dependencies]