summary refs log tree commit diff
path: root/pkgs/shells/nushell/use-system-zstd-lib.diff
blob: 6b0831cd9fbc5a40e3dc2622331fb05288718884 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
diff --git a/Cargo.lock b/Cargo.lock
index 6cebf66d..b6e40cd9 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2443,6 +2443,7 @@ dependencies = [
  "rstest",
  "serial_test",
  "tempfile",
+ "zstd-sys",
 ]
 
 [[package]]
@@ -5365,4 +5366,5 @@ checksum = "9fd07cbbc53846d9145dbffdf6dd09a7a0aa52be46741825f5c97bdd4f73f12b"
 dependencies = [
  "cc",
  "libc",
+ "pkg-config",
 ]
diff --git a/Cargo.toml b/Cargo.toml
index 0791d462..d520d9ae 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -58,6 +58,9 @@ rayon = "1.5.1"
 reedline = { version = "0.6.0", features = ["bashisms"]}
 is_executable = "1.0.1"
 
+# Specify that the indirect dependency ztsd-sys should pick up the system zstd C library
+zstd-sys = { version = "2", features = [ "pkg-config" ] }
+
 [dev-dependencies]
 nu-test-support = { path="./crates/nu-test-support", version = "0.63.0"  }
 tempfile = "3.2.0"