diff --git a/Cargo.lock b/Cargo.lock index b70ddd6c8..d19d1d78c 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 1cb1a3121..0683697fc 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 40bf4e5b9..379f5b554 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]