about summary refs log tree commit diff
path: root/pkgs/development/tools/rust/cargo-about/zstd-pkg-config.patch
blob: ea8b67085fd20c434708c0ffd8fed71bca1d5a56 (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
33
34
35
36
37
38
39
40
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -207,6 +207,7 @@ dependencies = [
  "toml_edit",
  "twox-hash",
  "url",
+ "zstd",
 ]
 
 [[package]]
@@ -1093,6 +1094,12 @@ version = "0.1.0"
 source = "registry+https://github.com/rust-lang/crates.io-index"
 checksum = "8b870d8c151b6f2fb93e84a13146138f05d02ed11c7e7c54f8826aaaf7c9f184"
 
+[[package]]
+name = "pkg-config"
+version = "0.3.26"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "6ac9a59f73473f1b8d852421e59e64809f025994837ef743615c6d0c5b305160"
+
 [[package]]
 name = "ppv-lite86"
 version = "0.2.16"
@@ -2045,4 +2052,5 @@ checksum = "2141bed8922b427761470e6bbfeff255da94fa20b0bbeab0d9297fcaf71e3aa7"
 dependencies = [
  "cc",
  "libc",
+ "pkg-config",
 ]
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -80,6 +80,8 @@ toml_edit = "0.15"
 twox-hash = "1.6"
 # Url parsing
 url = "2.2"
+# Use pkg-config feature of zstd
+zstd = { version = "*", features = ["pkg-config"] }
 
 [dev-dependencies]
 # Filesystems - Filesystem fixtures and assertions for testing