Debian Codegraph @

debian/patches/0001-Disable-unneded-deps-support-older-deps-as-needed.patch

raw
1 From: Federico Ceratto <[email protected]>
2 Date: Sat, 21 Mar 2026 12:36:00 +0100
3 Subject: Disable unneded deps, support older deps as needed
4
5 ---
6 Cargo.toml | 59 ++++++++++++++++++++++++------------------------
7 core/Cargo.toml | 2 +-
8 lib/testutils/Cargo.toml | 1 +
9 3 files changed, 31 insertions(+), 31 deletions(-)
10
11 diff --git a/Cargo.toml b/Cargo.toml
12 index 58d1115..091c1a4 100644
13 --- a/Cargo.toml
14 +++ b/Cargo.toml
15 @@ -7,7 +7,7 @@ members = [
16 "core",
17 "core/proc-macros",
18 "lib",
19 - "lib/gen-protos",
20 +# "lib/gen-protos",
21 "lib/testutils",
22 ]
23
24 @@ -25,11 +25,11 @@ keywords = ["VCS", "DVCS", "SCM", "Git", "Mercurial"]
25
26 [workspace.dependencies]
27 ansi-to-tui = "8.0.1"
28 -anstream = "1.0.0"
29 -assert_cmd = "2.2.2"
30 +anstream = ">=0.6.21"
31 +assert_cmd = ">=2.1.2"
32 assert_matches = "1.5.0"
33 -async-trait = "0.1.89"
34 -blake2 = "0.10.6"
35 +async-trait = ">=0.1.89"
36 +blake2 = ">=0.10.6"
37 bstr = { version = "1.12.1", features = ["serde"] }
38 chrono = { version = "0.4.44", default-features = false, features = [
39 "std",
40 @@ -44,23 +44,23 @@ clap = { version = "4.6.1", features = [
41 ] }
42 # Update clap-markdown manually since test_generate_md_cli_help snapshot
43 # will need regenerating.
44 -clap-markdown = "=0.1.5"
45 +clap-markdown = ">=0.1.5"
46 clap_complete = { version = "4.6.5", features = ["unstable-dynamic"] }
47 clap_complete_nushell = "4.6.0"
48 clap_mangen = "0.3.0"
49 clru = "0.6.3"
50 -criterion = "0.8.2"
51 -crossterm = { version = "0.29", default-features = false, features = ["windows"] }
52 +criterion = ">=0.5.1"
53 +crossterm = { version = ">=0.29", default-features = false, features = [] }
54 ctrlc = { version = "3.5.2", features = ["termination"] }
55 datatest-stable = "0.3.3"
56 digest = "0.10.7"
57 dunce = "1.0.5"
58 either = "1.16.0"
59 erased-serde = "0.4.10"
60 -etcetera = "0.11.0"
61 -eyre = "0.6"
62 -futures = "0.3.32"
63 -gix = { version = "0.87.1", default-features = false, features = [
64 +etcetera = ">=0.10.0"
65 +eyre = ">=0.6"
66 +futures = ">=0.3.32"
67 +gix = { version = ">=0.86.0", default-features = false, features = [
68 "attributes",
69 "blob-diff",
70 "index",
71 @@ -68,32 +68,31 @@ gix = { version = "0.87.1", default-features = false, features = [
72 "sha1",
73 "sha256",
74 ] }
75 -gix-ignore = { version = "0.22.1" }
76 -globset = "0.4.18"
77 -hashbrown = { version = "0.17.1", default-features = false, features = ["inline-more"] }
78 +gix-ignore = { version = ">=0.22.0" }
79 +globset = ">=0.4.18"
80 +hashbrown = { version = ">=0.16.1", default-features = false, features = ["inline-more"] }
81 indexmap = { version = "2.14.0", features = ["serde"] }
82 indoc = "2.0.7"
83 insta = { version = "1.47.2", features = ["filters"] }
84 interim = { version = "0.2.1", features = ["chrono_0_4"] }
85 -itertools = "0.15.0"
86 -jsonschema = { version = "0.51.0", default-features = false }
87 -libc = { version = "0.2.186" }
88 +itertools = ">=0.14.0"
89 +jsonschema = { version = ">=0.37.4", default-features = false }
90 +libc = { version = ">=0.2.186" }
91 maplit = "1.0.2"
92 memchr = "2.8.2"
93 -# no_thp due to perf issues with kernel page compaction, see #9708
94 -mimalloc = { version = "0.1.52", features = ["no_thp"] }
95 -nix = "0.31.3"
96 +mimalloc = { version = ">=0.1.52" }
97 +nix = ">=0.30.1"
98 num_cpus = "1.17.0"
99 once_cell = "1.21.4"
100 percent-encoding = "2.3.2"
101 pest = "2.8.6"
102 pest_derive = "2.8.6"
103 -pollster = "1.0.1"
104 +pollster = ">=0.4.0"
105 pretty_assertions = "1.4.1"
106 proc-macro2 = "1.0.104"
107 proptest = "1.11.0"
108 -proptest-derive = "0.8.0"
109 -proptest-state-machine = "0.8.0"
110 +proptest-derive = ">=0.4.0"
111 +proptest-state-machine = ">=0.4.0"
112 prost = "0.14.3"
113 prost-build = "0.14.3"
114 quote = "1.0.45"
115 @@ -112,7 +111,7 @@ sapling-streampager = "0.12.0"
116 scm-record = "0.10.0"
117 serde = { version = "1.0", features = ["derive", "rc"] }
118 serde_json = "1.0.150"
119 -shlex = "2.0.1"
120 +shlex = ">=1.3.0"
121 slab = "0.4.12"
122 smallvec = { version = "1.15.1", features = [
123 "const_generics",
124 @@ -124,14 +123,14 @@ strsim = "0.11.1"
125 syn = "3.0.3"
126 tempfile = "3.27.0"
127 test-case = "3.3.1"
128 -textwrap = "0.16.2"
129 +textwrap = ">=0.16.2"
130 thiserror = "2.0.17"
131 timeago = { version = "0.6.0", default-features = false }
132 tokio = { version = "1.52.3", features = ["fs", "io-util", "process", "rt-multi-thread", "sync", "time"] }
133 toml = "1.1.0"
134 -toml_edit = { version = "0.25.12", features = ["serde"] }
135 -tracing = "0.1.44"
136 -tracing-chrome = "0.7.2"
137 +toml_edit = { version = ">=0.25.11", features = ["serde"] }
138 +tracing = ">=0.1.44"
139 +tracing-chrome = ">=0.7.2"
140 tracing-subscriber = { version = "0.3.23", default-features = false, features = [
141 "std",
142 "ansi",
143 @@ -141,7 +140,7 @@ tracing-subscriber = { version = "0.3.23", default-features = false, features =
144 unicode-width = "0.2.2"
145 watchman_client = "0.9.0"
146 whoami = "2.1.2"
147 -winreg = "0.56"
148 +# winreg = "0.56"
149
150 # put all inter-workspace libraries, i.e. those that use 'path = ...' here in
151 # their own (alphabetically sorted) block
152 diff --git a/core/Cargo.toml b/core/Cargo.toml
153 index cf4f4d8..7258a81 100644
154 --- a/core/Cargo.toml
155 +++ b/core/Cargo.toml
156 @@ -48,7 +48,7 @@ test-case = { workspace = true }
157
158 [target.'cfg(windows)'.dependencies]
159 same-file = { workspace = true }
160 -winreg = { workspace = true }
161 +# winreg = { workspace = true }
162
163 [lints]
164 workspace = true
165 diff --git a/lib/testutils/Cargo.toml b/lib/testutils/Cargo.toml
166 index 918bc66..8ef84a8 100644
167 --- a/lib/testutils/Cargo.toml
168 +++ b/lib/testutils/Cargo.toml
169 @@ -21,6 +21,7 @@ eyre = { workspace = true }
170 futures = { workspace = true }
171 gix = { workspace = true, features = [
172 "status",
173 + "tree-editor",
174 "worktree-mutation",
175 ] }
176 itertools = { workspace = true }