Show More
@@ -1,832 +1,833 b'' | |||
|
1 | 1 | # This file is automatically @generated by Cargo. |
|
2 | 2 | # It is not intended for manual editing. |
|
3 | 3 | [[package]] |
|
4 | 4 | name = "aho-corasick" |
|
5 | 5 | version = "0.7.10" |
|
6 | 6 | source = "registry+https://github.com/rust-lang/crates.io-index" |
|
7 | 7 | dependencies = [ |
|
8 | 8 | "memchr 2.3.3 (registry+https://github.com/rust-lang/crates.io-index)", |
|
9 | 9 | ] |
|
10 | 10 | |
|
11 | 11 | [[package]] |
|
12 | 12 | name = "ansi_term" |
|
13 | 13 | version = "0.11.0" |
|
14 | 14 | source = "registry+https://github.com/rust-lang/crates.io-index" |
|
15 | 15 | dependencies = [ |
|
16 | 16 | "winapi 0.3.8 (registry+https://github.com/rust-lang/crates.io-index)", |
|
17 | 17 | ] |
|
18 | 18 | |
|
19 | 19 | [[package]] |
|
20 | 20 | name = "atty" |
|
21 | 21 | version = "0.2.14" |
|
22 | 22 | source = "registry+https://github.com/rust-lang/crates.io-index" |
|
23 | 23 | dependencies = [ |
|
24 | 24 | "hermit-abi 0.1.8 (registry+https://github.com/rust-lang/crates.io-index)", |
|
25 | 25 | "libc 0.2.67 (registry+https://github.com/rust-lang/crates.io-index)", |
|
26 | 26 | "winapi 0.3.8 (registry+https://github.com/rust-lang/crates.io-index)", |
|
27 | 27 | ] |
|
28 | 28 | |
|
29 | 29 | [[package]] |
|
30 | 30 | name = "autocfg" |
|
31 | 31 | version = "0.1.7" |
|
32 | 32 | source = "registry+https://github.com/rust-lang/crates.io-index" |
|
33 | 33 | |
|
34 | 34 | [[package]] |
|
35 | 35 | name = "autocfg" |
|
36 | 36 | version = "1.0.0" |
|
37 | 37 | source = "registry+https://github.com/rust-lang/crates.io-index" |
|
38 | 38 | |
|
39 | 39 | [[package]] |
|
40 | 40 | name = "bitflags" |
|
41 | 41 | version = "1.2.1" |
|
42 | 42 | source = "registry+https://github.com/rust-lang/crates.io-index" |
|
43 | 43 | |
|
44 | 44 | [[package]] |
|
45 | 45 | name = "byteorder" |
|
46 | 46 | version = "1.3.4" |
|
47 | 47 | source = "registry+https://github.com/rust-lang/crates.io-index" |
|
48 | 48 | |
|
49 | 49 | [[package]] |
|
50 | 50 | name = "cc" |
|
51 | 51 | version = "1.0.50" |
|
52 | 52 | source = "registry+https://github.com/rust-lang/crates.io-index" |
|
53 | 53 | |
|
54 | 54 | [[package]] |
|
55 | 55 | name = "cfg-if" |
|
56 | 56 | version = "0.1.10" |
|
57 | 57 | source = "registry+https://github.com/rust-lang/crates.io-index" |
|
58 | 58 | |
|
59 | 59 | [[package]] |
|
60 | 60 | name = "chrono" |
|
61 | 61 | version = "0.4.11" |
|
62 | 62 | source = "registry+https://github.com/rust-lang/crates.io-index" |
|
63 | 63 | dependencies = [ |
|
64 | 64 | "num-integer 0.1.42 (registry+https://github.com/rust-lang/crates.io-index)", |
|
65 | 65 | "num-traits 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)", |
|
66 | 66 | "time 0.1.42 (registry+https://github.com/rust-lang/crates.io-index)", |
|
67 | 67 | ] |
|
68 | 68 | |
|
69 | 69 | [[package]] |
|
70 | 70 | name = "clap" |
|
71 | 71 | version = "2.33.0" |
|
72 | 72 | source = "registry+https://github.com/rust-lang/crates.io-index" |
|
73 | 73 | dependencies = [ |
|
74 | 74 | "ansi_term 0.11.0 (registry+https://github.com/rust-lang/crates.io-index)", |
|
75 | 75 | "atty 0.2.14 (registry+https://github.com/rust-lang/crates.io-index)", |
|
76 | 76 | "bitflags 1.2.1 (registry+https://github.com/rust-lang/crates.io-index)", |
|
77 | 77 | "strsim 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)", |
|
78 | 78 | "textwrap 0.11.0 (registry+https://github.com/rust-lang/crates.io-index)", |
|
79 | 79 | "unicode-width 0.1.7 (registry+https://github.com/rust-lang/crates.io-index)", |
|
80 | 80 | "vec_map 0.8.1 (registry+https://github.com/rust-lang/crates.io-index)", |
|
81 | 81 | ] |
|
82 | 82 | |
|
83 | 83 | [[package]] |
|
84 | 84 | name = "cloudabi" |
|
85 | 85 | version = "0.0.3" |
|
86 | 86 | source = "registry+https://github.com/rust-lang/crates.io-index" |
|
87 | 87 | dependencies = [ |
|
88 | 88 | "bitflags 1.2.1 (registry+https://github.com/rust-lang/crates.io-index)", |
|
89 | 89 | ] |
|
90 | 90 | |
|
91 | 91 | [[package]] |
|
92 | 92 | name = "colored" |
|
93 | 93 | version = "1.9.3" |
|
94 | 94 | source = "registry+https://github.com/rust-lang/crates.io-index" |
|
95 | 95 | dependencies = [ |
|
96 | 96 | "atty 0.2.14 (registry+https://github.com/rust-lang/crates.io-index)", |
|
97 | 97 | "lazy_static 1.4.0 (registry+https://github.com/rust-lang/crates.io-index)", |
|
98 | 98 | "winapi 0.3.8 (registry+https://github.com/rust-lang/crates.io-index)", |
|
99 | 99 | ] |
|
100 | 100 | |
|
101 | 101 | [[package]] |
|
102 | 102 | name = "cpython" |
|
103 | 103 | version = "0.4.1" |
|
104 | 104 | source = "registry+https://github.com/rust-lang/crates.io-index" |
|
105 | 105 | dependencies = [ |
|
106 | 106 | "libc 0.2.67 (registry+https://github.com/rust-lang/crates.io-index)", |
|
107 | 107 | "num-traits 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)", |
|
108 | 108 | "python27-sys 0.4.1 (registry+https://github.com/rust-lang/crates.io-index)", |
|
109 | 109 | "python3-sys 0.4.1 (registry+https://github.com/rust-lang/crates.io-index)", |
|
110 | 110 | ] |
|
111 | 111 | |
|
112 | 112 | [[package]] |
|
113 | 113 | name = "crossbeam" |
|
114 | 114 | version = "0.7.3" |
|
115 | 115 | source = "registry+https://github.com/rust-lang/crates.io-index" |
|
116 | 116 | dependencies = [ |
|
117 | 117 | "cfg-if 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)", |
|
118 | 118 | "crossbeam-channel 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)", |
|
119 | 119 | "crossbeam-deque 0.7.3 (registry+https://github.com/rust-lang/crates.io-index)", |
|
120 | 120 | "crossbeam-epoch 0.8.2 (registry+https://github.com/rust-lang/crates.io-index)", |
|
121 | 121 | "crossbeam-queue 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)", |
|
122 | 122 | "crossbeam-utils 0.7.2 (registry+https://github.com/rust-lang/crates.io-index)", |
|
123 | 123 | ] |
|
124 | 124 | |
|
125 | 125 | [[package]] |
|
126 | 126 | name = "crossbeam-channel" |
|
127 | 127 | version = "0.4.2" |
|
128 | 128 | source = "registry+https://github.com/rust-lang/crates.io-index" |
|
129 | 129 | dependencies = [ |
|
130 | 130 | "crossbeam-utils 0.7.2 (registry+https://github.com/rust-lang/crates.io-index)", |
|
131 | 131 | "maybe-uninit 2.0.0 (registry+https://github.com/rust-lang/crates.io-index)", |
|
132 | 132 | ] |
|
133 | 133 | |
|
134 | 134 | [[package]] |
|
135 | 135 | name = "crossbeam-deque" |
|
136 | 136 | version = "0.7.3" |
|
137 | 137 | source = "registry+https://github.com/rust-lang/crates.io-index" |
|
138 | 138 | dependencies = [ |
|
139 | 139 | "crossbeam-epoch 0.8.2 (registry+https://github.com/rust-lang/crates.io-index)", |
|
140 | 140 | "crossbeam-utils 0.7.2 (registry+https://github.com/rust-lang/crates.io-index)", |
|
141 | 141 | "maybe-uninit 2.0.0 (registry+https://github.com/rust-lang/crates.io-index)", |
|
142 | 142 | ] |
|
143 | 143 | |
|
144 | 144 | [[package]] |
|
145 | 145 | name = "crossbeam-epoch" |
|
146 | 146 | version = "0.8.2" |
|
147 | 147 | source = "registry+https://github.com/rust-lang/crates.io-index" |
|
148 | 148 | dependencies = [ |
|
149 | 149 | "autocfg 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)", |
|
150 | 150 | "cfg-if 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)", |
|
151 | 151 | "crossbeam-utils 0.7.2 (registry+https://github.com/rust-lang/crates.io-index)", |
|
152 | 152 | "lazy_static 1.4.0 (registry+https://github.com/rust-lang/crates.io-index)", |
|
153 | 153 | "maybe-uninit 2.0.0 (registry+https://github.com/rust-lang/crates.io-index)", |
|
154 | 154 | "memoffset 0.5.3 (registry+https://github.com/rust-lang/crates.io-index)", |
|
155 | 155 | "scopeguard 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)", |
|
156 | 156 | ] |
|
157 | 157 | |
|
158 | 158 | [[package]] |
|
159 | 159 | name = "crossbeam-queue" |
|
160 | 160 | version = "0.2.1" |
|
161 | 161 | source = "registry+https://github.com/rust-lang/crates.io-index" |
|
162 | 162 | dependencies = [ |
|
163 | 163 | "cfg-if 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)", |
|
164 | 164 | "crossbeam-utils 0.7.2 (registry+https://github.com/rust-lang/crates.io-index)", |
|
165 | 165 | ] |
|
166 | 166 | |
|
167 | 167 | [[package]] |
|
168 | 168 | name = "crossbeam-utils" |
|
169 | 169 | version = "0.7.2" |
|
170 | 170 | source = "registry+https://github.com/rust-lang/crates.io-index" |
|
171 | 171 | dependencies = [ |
|
172 | 172 | "autocfg 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)", |
|
173 | 173 | "cfg-if 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)", |
|
174 | 174 | "lazy_static 1.4.0 (registry+https://github.com/rust-lang/crates.io-index)", |
|
175 | 175 | ] |
|
176 | 176 | |
|
177 | 177 | [[package]] |
|
178 | 178 | name = "ctor" |
|
179 | 179 | version = "0.1.13" |
|
180 | 180 | source = "registry+https://github.com/rust-lang/crates.io-index" |
|
181 | 181 | dependencies = [ |
|
182 | 182 | "quote 1.0.3 (registry+https://github.com/rust-lang/crates.io-index)", |
|
183 | 183 | "syn 1.0.16 (registry+https://github.com/rust-lang/crates.io-index)", |
|
184 | 184 | ] |
|
185 | 185 | |
|
186 | 186 | [[package]] |
|
187 | 187 | name = "difference" |
|
188 | 188 | version = "2.0.0" |
|
189 | 189 | source = "registry+https://github.com/rust-lang/crates.io-index" |
|
190 | 190 | |
|
191 | 191 | [[package]] |
|
192 | 192 | name = "either" |
|
193 | 193 | version = "1.5.3" |
|
194 | 194 | source = "registry+https://github.com/rust-lang/crates.io-index" |
|
195 | 195 | |
|
196 | 196 | [[package]] |
|
197 | 197 | name = "fuchsia-cprng" |
|
198 | 198 | version = "0.1.1" |
|
199 | 199 | source = "registry+https://github.com/rust-lang/crates.io-index" |
|
200 | 200 | |
|
201 | 201 | [[package]] |
|
202 | 202 | name = "getrandom" |
|
203 | 203 | version = "0.1.14" |
|
204 | 204 | source = "registry+https://github.com/rust-lang/crates.io-index" |
|
205 | 205 | dependencies = [ |
|
206 | 206 | "cfg-if 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)", |
|
207 | 207 | "libc 0.2.67 (registry+https://github.com/rust-lang/crates.io-index)", |
|
208 | 208 | "wasi 0.9.0+wasi-snapshot-preview1 (registry+https://github.com/rust-lang/crates.io-index)", |
|
209 | 209 | ] |
|
210 | 210 | |
|
211 | 211 | [[package]] |
|
212 | 212 | name = "hermit-abi" |
|
213 | 213 | version = "0.1.8" |
|
214 | 214 | source = "registry+https://github.com/rust-lang/crates.io-index" |
|
215 | 215 | dependencies = [ |
|
216 | 216 | "libc 0.2.67 (registry+https://github.com/rust-lang/crates.io-index)", |
|
217 | 217 | ] |
|
218 | 218 | |
|
219 | 219 | [[package]] |
|
220 | 220 | name = "hex" |
|
221 | 221 | version = "0.4.2" |
|
222 | 222 | source = "registry+https://github.com/rust-lang/crates.io-index" |
|
223 | 223 | |
|
224 | 224 | [[package]] |
|
225 | 225 | name = "hg-core" |
|
226 | 226 | version = "0.1.0" |
|
227 | 227 | dependencies = [ |
|
228 | 228 | "byteorder 1.3.4 (registry+https://github.com/rust-lang/crates.io-index)", |
|
229 | 229 | "cc 1.0.50 (registry+https://github.com/rust-lang/crates.io-index)", |
|
230 | 230 | "clap 2.33.0 (registry+https://github.com/rust-lang/crates.io-index)", |
|
231 | 231 | "crossbeam 0.7.3 (registry+https://github.com/rust-lang/crates.io-index)", |
|
232 | 232 | "hex 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)", |
|
233 | 233 | "lazy_static 1.4.0 (registry+https://github.com/rust-lang/crates.io-index)", |
|
234 | 234 | "libc 0.2.67 (registry+https://github.com/rust-lang/crates.io-index)", |
|
235 | 235 | "log 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)", |
|
236 | 236 | "memchr 2.3.3 (registry+https://github.com/rust-lang/crates.io-index)", |
|
237 | 237 | "memmap 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)", |
|
238 | 238 | "micro-timer 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", |
|
239 | 239 | "pretty_assertions 0.6.1 (registry+https://github.com/rust-lang/crates.io-index)", |
|
240 | 240 | "rand 0.6.5 (registry+https://github.com/rust-lang/crates.io-index)", |
|
241 | 241 | "rand_pcg 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", |
|
242 | 242 | "rayon 1.3.0 (registry+https://github.com/rust-lang/crates.io-index)", |
|
243 | 243 | "regex 1.3.4 (registry+https://github.com/rust-lang/crates.io-index)", |
|
244 | 244 | "same-file 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)", |
|
245 | 245 | "tempfile 3.1.0 (registry+https://github.com/rust-lang/crates.io-index)", |
|
246 | 246 | "twox-hash 1.5.0 (registry+https://github.com/rust-lang/crates.io-index)", |
|
247 | 247 | ] |
|
248 | 248 | |
|
249 | 249 | [[package]] |
|
250 | 250 | name = "hg-cpython" |
|
251 | 251 | version = "0.1.0" |
|
252 | 252 | dependencies = [ |
|
253 | 253 | "cpython 0.4.1 (registry+https://github.com/rust-lang/crates.io-index)", |
|
254 | 254 | "hg-core 0.1.0", |
|
255 | 255 | "libc 0.2.67 (registry+https://github.com/rust-lang/crates.io-index)", |
|
256 | "log 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)", | |
|
256 | 257 | "simple_logger 1.6.0 (registry+https://github.com/rust-lang/crates.io-index)", |
|
257 | 258 | ] |
|
258 | 259 | |
|
259 | 260 | [[package]] |
|
260 | 261 | name = "lazy_static" |
|
261 | 262 | version = "1.4.0" |
|
262 | 263 | source = "registry+https://github.com/rust-lang/crates.io-index" |
|
263 | 264 | |
|
264 | 265 | [[package]] |
|
265 | 266 | name = "libc" |
|
266 | 267 | version = "0.2.67" |
|
267 | 268 | source = "registry+https://github.com/rust-lang/crates.io-index" |
|
268 | 269 | |
|
269 | 270 | [[package]] |
|
270 | 271 | name = "log" |
|
271 | 272 | version = "0.4.8" |
|
272 | 273 | source = "registry+https://github.com/rust-lang/crates.io-index" |
|
273 | 274 | dependencies = [ |
|
274 | 275 | "cfg-if 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)", |
|
275 | 276 | ] |
|
276 | 277 | |
|
277 | 278 | [[package]] |
|
278 | 279 | name = "maybe-uninit" |
|
279 | 280 | version = "2.0.0" |
|
280 | 281 | source = "registry+https://github.com/rust-lang/crates.io-index" |
|
281 | 282 | |
|
282 | 283 | [[package]] |
|
283 | 284 | name = "memchr" |
|
284 | 285 | version = "2.3.3" |
|
285 | 286 | source = "registry+https://github.com/rust-lang/crates.io-index" |
|
286 | 287 | |
|
287 | 288 | [[package]] |
|
288 | 289 | name = "memmap" |
|
289 | 290 | version = "0.7.0" |
|
290 | 291 | source = "registry+https://github.com/rust-lang/crates.io-index" |
|
291 | 292 | dependencies = [ |
|
292 | 293 | "libc 0.2.67 (registry+https://github.com/rust-lang/crates.io-index)", |
|
293 | 294 | "winapi 0.3.8 (registry+https://github.com/rust-lang/crates.io-index)", |
|
294 | 295 | ] |
|
295 | 296 | |
|
296 | 297 | [[package]] |
|
297 | 298 | name = "memoffset" |
|
298 | 299 | version = "0.5.3" |
|
299 | 300 | source = "registry+https://github.com/rust-lang/crates.io-index" |
|
300 | 301 | dependencies = [ |
|
301 | 302 | "rustc_version 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)", |
|
302 | 303 | ] |
|
303 | 304 | |
|
304 | 305 | [[package]] |
|
305 | 306 | name = "micro-timer" |
|
306 | 307 | version = "0.1.2" |
|
307 | 308 | source = "registry+https://github.com/rust-lang/crates.io-index" |
|
308 | 309 | dependencies = [ |
|
309 | 310 | "proc-macro2 1.0.9 (registry+https://github.com/rust-lang/crates.io-index)", |
|
310 | 311 | "quote 1.0.3 (registry+https://github.com/rust-lang/crates.io-index)", |
|
311 | 312 | "syn 1.0.16 (registry+https://github.com/rust-lang/crates.io-index)", |
|
312 | 313 | ] |
|
313 | 314 | |
|
314 | 315 | [[package]] |
|
315 | 316 | name = "num-integer" |
|
316 | 317 | version = "0.1.42" |
|
317 | 318 | source = "registry+https://github.com/rust-lang/crates.io-index" |
|
318 | 319 | dependencies = [ |
|
319 | 320 | "autocfg 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)", |
|
320 | 321 | "num-traits 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)", |
|
321 | 322 | ] |
|
322 | 323 | |
|
323 | 324 | [[package]] |
|
324 | 325 | name = "num-traits" |
|
325 | 326 | version = "0.2.11" |
|
326 | 327 | source = "registry+https://github.com/rust-lang/crates.io-index" |
|
327 | 328 | dependencies = [ |
|
328 | 329 | "autocfg 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)", |
|
329 | 330 | ] |
|
330 | 331 | |
|
331 | 332 | [[package]] |
|
332 | 333 | name = "num_cpus" |
|
333 | 334 | version = "1.12.0" |
|
334 | 335 | source = "registry+https://github.com/rust-lang/crates.io-index" |
|
335 | 336 | dependencies = [ |
|
336 | 337 | "hermit-abi 0.1.8 (registry+https://github.com/rust-lang/crates.io-index)", |
|
337 | 338 | "libc 0.2.67 (registry+https://github.com/rust-lang/crates.io-index)", |
|
338 | 339 | ] |
|
339 | 340 | |
|
340 | 341 | [[package]] |
|
341 | 342 | name = "output_vt100" |
|
342 | 343 | version = "0.1.2" |
|
343 | 344 | source = "registry+https://github.com/rust-lang/crates.io-index" |
|
344 | 345 | dependencies = [ |
|
345 | 346 | "winapi 0.3.8 (registry+https://github.com/rust-lang/crates.io-index)", |
|
346 | 347 | ] |
|
347 | 348 | |
|
348 | 349 | [[package]] |
|
349 | 350 | name = "ppv-lite86" |
|
350 | 351 | version = "0.2.6" |
|
351 | 352 | source = "registry+https://github.com/rust-lang/crates.io-index" |
|
352 | 353 | |
|
353 | 354 | [[package]] |
|
354 | 355 | name = "pretty_assertions" |
|
355 | 356 | version = "0.6.1" |
|
356 | 357 | source = "registry+https://github.com/rust-lang/crates.io-index" |
|
357 | 358 | dependencies = [ |
|
358 | 359 | "ansi_term 0.11.0 (registry+https://github.com/rust-lang/crates.io-index)", |
|
359 | 360 | "ctor 0.1.13 (registry+https://github.com/rust-lang/crates.io-index)", |
|
360 | 361 | "difference 2.0.0 (registry+https://github.com/rust-lang/crates.io-index)", |
|
361 | 362 | "output_vt100 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", |
|
362 | 363 | ] |
|
363 | 364 | |
|
364 | 365 | [[package]] |
|
365 | 366 | name = "proc-macro2" |
|
366 | 367 | version = "1.0.9" |
|
367 | 368 | source = "registry+https://github.com/rust-lang/crates.io-index" |
|
368 | 369 | dependencies = [ |
|
369 | 370 | "unicode-xid 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)", |
|
370 | 371 | ] |
|
371 | 372 | |
|
372 | 373 | [[package]] |
|
373 | 374 | name = "python27-sys" |
|
374 | 375 | version = "0.4.1" |
|
375 | 376 | source = "registry+https://github.com/rust-lang/crates.io-index" |
|
376 | 377 | dependencies = [ |
|
377 | 378 | "libc 0.2.67 (registry+https://github.com/rust-lang/crates.io-index)", |
|
378 | 379 | "regex 1.3.4 (registry+https://github.com/rust-lang/crates.io-index)", |
|
379 | 380 | ] |
|
380 | 381 | |
|
381 | 382 | [[package]] |
|
382 | 383 | name = "python3-sys" |
|
383 | 384 | version = "0.4.1" |
|
384 | 385 | source = "registry+https://github.com/rust-lang/crates.io-index" |
|
385 | 386 | dependencies = [ |
|
386 | 387 | "libc 0.2.67 (registry+https://github.com/rust-lang/crates.io-index)", |
|
387 | 388 | "regex 1.3.4 (registry+https://github.com/rust-lang/crates.io-index)", |
|
388 | 389 | ] |
|
389 | 390 | |
|
390 | 391 | [[package]] |
|
391 | 392 | name = "quote" |
|
392 | 393 | version = "1.0.3" |
|
393 | 394 | source = "registry+https://github.com/rust-lang/crates.io-index" |
|
394 | 395 | dependencies = [ |
|
395 | 396 | "proc-macro2 1.0.9 (registry+https://github.com/rust-lang/crates.io-index)", |
|
396 | 397 | ] |
|
397 | 398 | |
|
398 | 399 | [[package]] |
|
399 | 400 | name = "rand" |
|
400 | 401 | version = "0.6.5" |
|
401 | 402 | source = "registry+https://github.com/rust-lang/crates.io-index" |
|
402 | 403 | dependencies = [ |
|
403 | 404 | "autocfg 0.1.7 (registry+https://github.com/rust-lang/crates.io-index)", |
|
404 | 405 | "libc 0.2.67 (registry+https://github.com/rust-lang/crates.io-index)", |
|
405 | 406 | "rand_chacha 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", |
|
406 | 407 | "rand_core 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)", |
|
407 | 408 | "rand_hc 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)", |
|
408 | 409 | "rand_isaac 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", |
|
409 | 410 | "rand_jitter 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)", |
|
410 | 411 | "rand_os 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)", |
|
411 | 412 | "rand_pcg 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", |
|
412 | 413 | "rand_xorshift 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", |
|
413 | 414 | "winapi 0.3.8 (registry+https://github.com/rust-lang/crates.io-index)", |
|
414 | 415 | ] |
|
415 | 416 | |
|
416 | 417 | [[package]] |
|
417 | 418 | name = "rand" |
|
418 | 419 | version = "0.7.3" |
|
419 | 420 | source = "registry+https://github.com/rust-lang/crates.io-index" |
|
420 | 421 | dependencies = [ |
|
421 | 422 | "getrandom 0.1.14 (registry+https://github.com/rust-lang/crates.io-index)", |
|
422 | 423 | "libc 0.2.67 (registry+https://github.com/rust-lang/crates.io-index)", |
|
423 | 424 | "rand_chacha 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)", |
|
424 | 425 | "rand_core 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)", |
|
425 | 426 | "rand_hc 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)", |
|
426 | 427 | ] |
|
427 | 428 | |
|
428 | 429 | [[package]] |
|
429 | 430 | name = "rand_chacha" |
|
430 | 431 | version = "0.1.1" |
|
431 | 432 | source = "registry+https://github.com/rust-lang/crates.io-index" |
|
432 | 433 | dependencies = [ |
|
433 | 434 | "autocfg 0.1.7 (registry+https://github.com/rust-lang/crates.io-index)", |
|
434 | 435 | "rand_core 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)", |
|
435 | 436 | ] |
|
436 | 437 | |
|
437 | 438 | [[package]] |
|
438 | 439 | name = "rand_chacha" |
|
439 | 440 | version = "0.2.2" |
|
440 | 441 | source = "registry+https://github.com/rust-lang/crates.io-index" |
|
441 | 442 | dependencies = [ |
|
442 | 443 | "ppv-lite86 0.2.6 (registry+https://github.com/rust-lang/crates.io-index)", |
|
443 | 444 | "rand_core 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)", |
|
444 | 445 | ] |
|
445 | 446 | |
|
446 | 447 | [[package]] |
|
447 | 448 | name = "rand_core" |
|
448 | 449 | version = "0.3.1" |
|
449 | 450 | source = "registry+https://github.com/rust-lang/crates.io-index" |
|
450 | 451 | dependencies = [ |
|
451 | 452 | "rand_core 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)", |
|
452 | 453 | ] |
|
453 | 454 | |
|
454 | 455 | [[package]] |
|
455 | 456 | name = "rand_core" |
|
456 | 457 | version = "0.4.2" |
|
457 | 458 | source = "registry+https://github.com/rust-lang/crates.io-index" |
|
458 | 459 | |
|
459 | 460 | [[package]] |
|
460 | 461 | name = "rand_core" |
|
461 | 462 | version = "0.5.1" |
|
462 | 463 | source = "registry+https://github.com/rust-lang/crates.io-index" |
|
463 | 464 | dependencies = [ |
|
464 | 465 | "getrandom 0.1.14 (registry+https://github.com/rust-lang/crates.io-index)", |
|
465 | 466 | ] |
|
466 | 467 | |
|
467 | 468 | [[package]] |
|
468 | 469 | name = "rand_hc" |
|
469 | 470 | version = "0.1.0" |
|
470 | 471 | source = "registry+https://github.com/rust-lang/crates.io-index" |
|
471 | 472 | dependencies = [ |
|
472 | 473 | "rand_core 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)", |
|
473 | 474 | ] |
|
474 | 475 | |
|
475 | 476 | [[package]] |
|
476 | 477 | name = "rand_hc" |
|
477 | 478 | version = "0.2.0" |
|
478 | 479 | source = "registry+https://github.com/rust-lang/crates.io-index" |
|
479 | 480 | dependencies = [ |
|
480 | 481 | "rand_core 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)", |
|
481 | 482 | ] |
|
482 | 483 | |
|
483 | 484 | [[package]] |
|
484 | 485 | name = "rand_isaac" |
|
485 | 486 | version = "0.1.1" |
|
486 | 487 | source = "registry+https://github.com/rust-lang/crates.io-index" |
|
487 | 488 | dependencies = [ |
|
488 | 489 | "rand_core 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)", |
|
489 | 490 | ] |
|
490 | 491 | |
|
491 | 492 | [[package]] |
|
492 | 493 | name = "rand_jitter" |
|
493 | 494 | version = "0.1.4" |
|
494 | 495 | source = "registry+https://github.com/rust-lang/crates.io-index" |
|
495 | 496 | dependencies = [ |
|
496 | 497 | "libc 0.2.67 (registry+https://github.com/rust-lang/crates.io-index)", |
|
497 | 498 | "rand_core 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)", |
|
498 | 499 | "winapi 0.3.8 (registry+https://github.com/rust-lang/crates.io-index)", |
|
499 | 500 | ] |
|
500 | 501 | |
|
501 | 502 | [[package]] |
|
502 | 503 | name = "rand_os" |
|
503 | 504 | version = "0.1.3" |
|
504 | 505 | source = "registry+https://github.com/rust-lang/crates.io-index" |
|
505 | 506 | dependencies = [ |
|
506 | 507 | "cloudabi 0.0.3 (registry+https://github.com/rust-lang/crates.io-index)", |
|
507 | 508 | "fuchsia-cprng 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", |
|
508 | 509 | "libc 0.2.67 (registry+https://github.com/rust-lang/crates.io-index)", |
|
509 | 510 | "rand_core 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)", |
|
510 | 511 | "rdrand 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)", |
|
511 | 512 | "winapi 0.3.8 (registry+https://github.com/rust-lang/crates.io-index)", |
|
512 | 513 | ] |
|
513 | 514 | |
|
514 | 515 | [[package]] |
|
515 | 516 | name = "rand_pcg" |
|
516 | 517 | version = "0.1.2" |
|
517 | 518 | source = "registry+https://github.com/rust-lang/crates.io-index" |
|
518 | 519 | dependencies = [ |
|
519 | 520 | "autocfg 0.1.7 (registry+https://github.com/rust-lang/crates.io-index)", |
|
520 | 521 | "rand_core 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)", |
|
521 | 522 | ] |
|
522 | 523 | |
|
523 | 524 | [[package]] |
|
524 | 525 | name = "rand_xorshift" |
|
525 | 526 | version = "0.1.1" |
|
526 | 527 | source = "registry+https://github.com/rust-lang/crates.io-index" |
|
527 | 528 | dependencies = [ |
|
528 | 529 | "rand_core 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)", |
|
529 | 530 | ] |
|
530 | 531 | |
|
531 | 532 | [[package]] |
|
532 | 533 | name = "rayon" |
|
533 | 534 | version = "1.3.0" |
|
534 | 535 | source = "registry+https://github.com/rust-lang/crates.io-index" |
|
535 | 536 | dependencies = [ |
|
536 | 537 | "crossbeam-deque 0.7.3 (registry+https://github.com/rust-lang/crates.io-index)", |
|
537 | 538 | "either 1.5.3 (registry+https://github.com/rust-lang/crates.io-index)", |
|
538 | 539 | "rayon-core 1.7.0 (registry+https://github.com/rust-lang/crates.io-index)", |
|
539 | 540 | ] |
|
540 | 541 | |
|
541 | 542 | [[package]] |
|
542 | 543 | name = "rayon-core" |
|
543 | 544 | version = "1.7.0" |
|
544 | 545 | source = "registry+https://github.com/rust-lang/crates.io-index" |
|
545 | 546 | dependencies = [ |
|
546 | 547 | "crossbeam-deque 0.7.3 (registry+https://github.com/rust-lang/crates.io-index)", |
|
547 | 548 | "crossbeam-queue 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)", |
|
548 | 549 | "crossbeam-utils 0.7.2 (registry+https://github.com/rust-lang/crates.io-index)", |
|
549 | 550 | "lazy_static 1.4.0 (registry+https://github.com/rust-lang/crates.io-index)", |
|
550 | 551 | "num_cpus 1.12.0 (registry+https://github.com/rust-lang/crates.io-index)", |
|
551 | 552 | ] |
|
552 | 553 | |
|
553 | 554 | [[package]] |
|
554 | 555 | name = "rdrand" |
|
555 | 556 | version = "0.4.0" |
|
556 | 557 | source = "registry+https://github.com/rust-lang/crates.io-index" |
|
557 | 558 | dependencies = [ |
|
558 | 559 | "rand_core 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)", |
|
559 | 560 | ] |
|
560 | 561 | |
|
561 | 562 | [[package]] |
|
562 | 563 | name = "redox_syscall" |
|
563 | 564 | version = "0.1.56" |
|
564 | 565 | source = "registry+https://github.com/rust-lang/crates.io-index" |
|
565 | 566 | |
|
566 | 567 | [[package]] |
|
567 | 568 | name = "regex" |
|
568 | 569 | version = "1.3.4" |
|
569 | 570 | source = "registry+https://github.com/rust-lang/crates.io-index" |
|
570 | 571 | dependencies = [ |
|
571 | 572 | "aho-corasick 0.7.10 (registry+https://github.com/rust-lang/crates.io-index)", |
|
572 | 573 | "memchr 2.3.3 (registry+https://github.com/rust-lang/crates.io-index)", |
|
573 | 574 | "regex-syntax 0.6.16 (registry+https://github.com/rust-lang/crates.io-index)", |
|
574 | 575 | "thread_local 1.0.1 (registry+https://github.com/rust-lang/crates.io-index)", |
|
575 | 576 | ] |
|
576 | 577 | |
|
577 | 578 | [[package]] |
|
578 | 579 | name = "regex-syntax" |
|
579 | 580 | version = "0.6.16" |
|
580 | 581 | source = "registry+https://github.com/rust-lang/crates.io-index" |
|
581 | 582 | |
|
582 | 583 | [[package]] |
|
583 | 584 | name = "remove_dir_all" |
|
584 | 585 | version = "0.5.2" |
|
585 | 586 | source = "registry+https://github.com/rust-lang/crates.io-index" |
|
586 | 587 | dependencies = [ |
|
587 | 588 | "winapi 0.3.8 (registry+https://github.com/rust-lang/crates.io-index)", |
|
588 | 589 | ] |
|
589 | 590 | |
|
590 | 591 | [[package]] |
|
591 | 592 | name = "rustc_version" |
|
592 | 593 | version = "0.2.3" |
|
593 | 594 | source = "registry+https://github.com/rust-lang/crates.io-index" |
|
594 | 595 | dependencies = [ |
|
595 | 596 | "semver 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)", |
|
596 | 597 | ] |
|
597 | 598 | |
|
598 | 599 | [[package]] |
|
599 | 600 | name = "same-file" |
|
600 | 601 | version = "1.0.6" |
|
601 | 602 | source = "registry+https://github.com/rust-lang/crates.io-index" |
|
602 | 603 | dependencies = [ |
|
603 | 604 | "winapi-util 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)", |
|
604 | 605 | ] |
|
605 | 606 | |
|
606 | 607 | [[package]] |
|
607 | 608 | name = "scopeguard" |
|
608 | 609 | version = "1.1.0" |
|
609 | 610 | source = "registry+https://github.com/rust-lang/crates.io-index" |
|
610 | 611 | |
|
611 | 612 | [[package]] |
|
612 | 613 | name = "semver" |
|
613 | 614 | version = "0.9.0" |
|
614 | 615 | source = "registry+https://github.com/rust-lang/crates.io-index" |
|
615 | 616 | dependencies = [ |
|
616 | 617 | "semver-parser 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)", |
|
617 | 618 | ] |
|
618 | 619 | |
|
619 | 620 | [[package]] |
|
620 | 621 | name = "semver-parser" |
|
621 | 622 | version = "0.7.0" |
|
622 | 623 | source = "registry+https://github.com/rust-lang/crates.io-index" |
|
623 | 624 | |
|
624 | 625 | [[package]] |
|
625 | 626 | name = "simple_logger" |
|
626 | 627 | version = "1.6.0" |
|
627 | 628 | source = "registry+https://github.com/rust-lang/crates.io-index" |
|
628 | 629 | dependencies = [ |
|
629 | 630 | "atty 0.2.14 (registry+https://github.com/rust-lang/crates.io-index)", |
|
630 | 631 | "chrono 0.4.11 (registry+https://github.com/rust-lang/crates.io-index)", |
|
631 | 632 | "colored 1.9.3 (registry+https://github.com/rust-lang/crates.io-index)", |
|
632 | 633 | "log 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)", |
|
633 | 634 | "winapi 0.3.8 (registry+https://github.com/rust-lang/crates.io-index)", |
|
634 | 635 | ] |
|
635 | 636 | |
|
636 | 637 | [[package]] |
|
637 | 638 | name = "strsim" |
|
638 | 639 | version = "0.8.0" |
|
639 | 640 | source = "registry+https://github.com/rust-lang/crates.io-index" |
|
640 | 641 | |
|
641 | 642 | [[package]] |
|
642 | 643 | name = "syn" |
|
643 | 644 | version = "1.0.16" |
|
644 | 645 | source = "registry+https://github.com/rust-lang/crates.io-index" |
|
645 | 646 | dependencies = [ |
|
646 | 647 | "proc-macro2 1.0.9 (registry+https://github.com/rust-lang/crates.io-index)", |
|
647 | 648 | "quote 1.0.3 (registry+https://github.com/rust-lang/crates.io-index)", |
|
648 | 649 | "unicode-xid 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)", |
|
649 | 650 | ] |
|
650 | 651 | |
|
651 | 652 | [[package]] |
|
652 | 653 | name = "tempfile" |
|
653 | 654 | version = "3.1.0" |
|
654 | 655 | source = "registry+https://github.com/rust-lang/crates.io-index" |
|
655 | 656 | dependencies = [ |
|
656 | 657 | "cfg-if 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)", |
|
657 | 658 | "libc 0.2.67 (registry+https://github.com/rust-lang/crates.io-index)", |
|
658 | 659 | "rand 0.7.3 (registry+https://github.com/rust-lang/crates.io-index)", |
|
659 | 660 | "redox_syscall 0.1.56 (registry+https://github.com/rust-lang/crates.io-index)", |
|
660 | 661 | "remove_dir_all 0.5.2 (registry+https://github.com/rust-lang/crates.io-index)", |
|
661 | 662 | "winapi 0.3.8 (registry+https://github.com/rust-lang/crates.io-index)", |
|
662 | 663 | ] |
|
663 | 664 | |
|
664 | 665 | [[package]] |
|
665 | 666 | name = "textwrap" |
|
666 | 667 | version = "0.11.0" |
|
667 | 668 | source = "registry+https://github.com/rust-lang/crates.io-index" |
|
668 | 669 | dependencies = [ |
|
669 | 670 | "unicode-width 0.1.7 (registry+https://github.com/rust-lang/crates.io-index)", |
|
670 | 671 | ] |
|
671 | 672 | |
|
672 | 673 | [[package]] |
|
673 | 674 | name = "thread_local" |
|
674 | 675 | version = "1.0.1" |
|
675 | 676 | source = "registry+https://github.com/rust-lang/crates.io-index" |
|
676 | 677 | dependencies = [ |
|
677 | 678 | "lazy_static 1.4.0 (registry+https://github.com/rust-lang/crates.io-index)", |
|
678 | 679 | ] |
|
679 | 680 | |
|
680 | 681 | [[package]] |
|
681 | 682 | name = "time" |
|
682 | 683 | version = "0.1.42" |
|
683 | 684 | source = "registry+https://github.com/rust-lang/crates.io-index" |
|
684 | 685 | dependencies = [ |
|
685 | 686 | "libc 0.2.67 (registry+https://github.com/rust-lang/crates.io-index)", |
|
686 | 687 | "redox_syscall 0.1.56 (registry+https://github.com/rust-lang/crates.io-index)", |
|
687 | 688 | "winapi 0.3.8 (registry+https://github.com/rust-lang/crates.io-index)", |
|
688 | 689 | ] |
|
689 | 690 | |
|
690 | 691 | [[package]] |
|
691 | 692 | name = "twox-hash" |
|
692 | 693 | version = "1.5.0" |
|
693 | 694 | source = "registry+https://github.com/rust-lang/crates.io-index" |
|
694 | 695 | dependencies = [ |
|
695 | 696 | "rand 0.7.3 (registry+https://github.com/rust-lang/crates.io-index)", |
|
696 | 697 | ] |
|
697 | 698 | |
|
698 | 699 | [[package]] |
|
699 | 700 | name = "unicode-width" |
|
700 | 701 | version = "0.1.7" |
|
701 | 702 | source = "registry+https://github.com/rust-lang/crates.io-index" |
|
702 | 703 | |
|
703 | 704 | [[package]] |
|
704 | 705 | name = "unicode-xid" |
|
705 | 706 | version = "0.2.0" |
|
706 | 707 | source = "registry+https://github.com/rust-lang/crates.io-index" |
|
707 | 708 | |
|
708 | 709 | [[package]] |
|
709 | 710 | name = "vec_map" |
|
710 | 711 | version = "0.8.1" |
|
711 | 712 | source = "registry+https://github.com/rust-lang/crates.io-index" |
|
712 | 713 | |
|
713 | 714 | [[package]] |
|
714 | 715 | name = "wasi" |
|
715 | 716 | version = "0.9.0+wasi-snapshot-preview1" |
|
716 | 717 | source = "registry+https://github.com/rust-lang/crates.io-index" |
|
717 | 718 | |
|
718 | 719 | [[package]] |
|
719 | 720 | name = "winapi" |
|
720 | 721 | version = "0.3.8" |
|
721 | 722 | source = "registry+https://github.com/rust-lang/crates.io-index" |
|
722 | 723 | dependencies = [ |
|
723 | 724 | "winapi-i686-pc-windows-gnu 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)", |
|
724 | 725 | "winapi-x86_64-pc-windows-gnu 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)", |
|
725 | 726 | ] |
|
726 | 727 | |
|
727 | 728 | [[package]] |
|
728 | 729 | name = "winapi-i686-pc-windows-gnu" |
|
729 | 730 | version = "0.4.0" |
|
730 | 731 | source = "registry+https://github.com/rust-lang/crates.io-index" |
|
731 | 732 | |
|
732 | 733 | [[package]] |
|
733 | 734 | name = "winapi-util" |
|
734 | 735 | version = "0.1.3" |
|
735 | 736 | source = "registry+https://github.com/rust-lang/crates.io-index" |
|
736 | 737 | dependencies = [ |
|
737 | 738 | "winapi 0.3.8 (registry+https://github.com/rust-lang/crates.io-index)", |
|
738 | 739 | ] |
|
739 | 740 | |
|
740 | 741 | [[package]] |
|
741 | 742 | name = "winapi-x86_64-pc-windows-gnu" |
|
742 | 743 | version = "0.4.0" |
|
743 | 744 | source = "registry+https://github.com/rust-lang/crates.io-index" |
|
744 | 745 | |
|
745 | 746 | [metadata] |
|
746 | 747 | "checksum aho-corasick 0.7.10 (registry+https://github.com/rust-lang/crates.io-index)" = "8716408b8bc624ed7f65d223ddb9ac2d044c0547b6fa4b0d554f3a9540496ada" |
|
747 | 748 | "checksum ansi_term 0.11.0 (registry+https://github.com/rust-lang/crates.io-index)" = "ee49baf6cb617b853aa8d93bf420db2383fab46d314482ca2803b40d5fde979b" |
|
748 | 749 | "checksum atty 0.2.14 (registry+https://github.com/rust-lang/crates.io-index)" = "d9b39be18770d11421cdb1b9947a45dd3f37e93092cbf377614828a319d5fee8" |
|
749 | 750 | "checksum autocfg 0.1.7 (registry+https://github.com/rust-lang/crates.io-index)" = "1d49d90015b3c36167a20fe2810c5cd875ad504b39cff3d4eae7977e6b7c1cb2" |
|
750 | 751 | "checksum autocfg 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)" = "f8aac770f1885fd7e387acedd76065302551364496e46b3dd00860b2f8359b9d" |
|
751 | 752 | "checksum bitflags 1.2.1 (registry+https://github.com/rust-lang/crates.io-index)" = "cf1de2fe8c75bc145a2f577add951f8134889b4795d47466a54a5c846d691693" |
|
752 | 753 | "checksum byteorder 1.3.4 (registry+https://github.com/rust-lang/crates.io-index)" = "08c48aae112d48ed9f069b33538ea9e3e90aa263cfa3d1c24309612b1f7472de" |
|
753 | 754 | "checksum cc 1.0.50 (registry+https://github.com/rust-lang/crates.io-index)" = "95e28fa049fda1c330bcf9d723be7663a899c4679724b34c81e9f5a326aab8cd" |
|
754 | 755 | "checksum cfg-if 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)" = "4785bdd1c96b2a846b2bd7cc02e86b6b3dbf14e7e53446c4f54c92a361040822" |
|
755 | 756 | "checksum chrono 0.4.11 (registry+https://github.com/rust-lang/crates.io-index)" = "80094f509cf8b5ae86a4966a39b3ff66cd7e2a3e594accec3743ff3fabeab5b2" |
|
756 | 757 | "checksum clap 2.33.0 (registry+https://github.com/rust-lang/crates.io-index)" = "5067f5bb2d80ef5d68b4c87db81601f0b75bca627bc2ef76b141d7b846a3c6d9" |
|
757 | 758 | "checksum cloudabi 0.0.3 (registry+https://github.com/rust-lang/crates.io-index)" = "ddfc5b9aa5d4507acaf872de71051dfd0e309860e88966e1051e462a077aac4f" |
|
758 | 759 | "checksum colored 1.9.3 (registry+https://github.com/rust-lang/crates.io-index)" = "f4ffc801dacf156c5854b9df4f425a626539c3a6ef7893cc0c5084a23f0b6c59" |
|
759 | 760 | "checksum cpython 0.4.1 (registry+https://github.com/rust-lang/crates.io-index)" = "bfaf3847ab963e40c4f6dd8d6be279bdf74007ae2413786a0dcbb28c52139a95" |
|
760 | 761 | "checksum crossbeam 0.7.3 (registry+https://github.com/rust-lang/crates.io-index)" = "69323bff1fb41c635347b8ead484a5ca6c3f11914d784170b158d8449ab07f8e" |
|
761 | 762 | "checksum crossbeam-channel 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)" = "cced8691919c02aac3cb0a1bc2e9b73d89e832bf9a06fc579d4e71b68a2da061" |
|
762 | 763 | "checksum crossbeam-deque 0.7.3 (registry+https://github.com/rust-lang/crates.io-index)" = "9f02af974daeee82218205558e51ec8768b48cf524bd01d550abe5573a608285" |
|
763 | 764 | "checksum crossbeam-epoch 0.8.2 (registry+https://github.com/rust-lang/crates.io-index)" = "058ed274caafc1f60c4997b5fc07bf7dc7cca454af7c6e81edffe5f33f70dace" |
|
764 | 765 | "checksum crossbeam-queue 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)" = "c695eeca1e7173472a32221542ae469b3e9aac3a4fc81f7696bcad82029493db" |
|
765 | 766 | "checksum crossbeam-utils 0.7.2 (registry+https://github.com/rust-lang/crates.io-index)" = "c3c7c73a2d1e9fc0886a08b93e98eb643461230d5f1925e4036204d5f2e261a8" |
|
766 | 767 | "checksum ctor 0.1.13 (registry+https://github.com/rust-lang/crates.io-index)" = "47c5e5ac752e18207b12e16b10631ae5f7f68f8805f335f9b817ead83d9ffce1" |
|
767 | 768 | "checksum difference 2.0.0 (registry+https://github.com/rust-lang/crates.io-index)" = "524cbf6897b527295dff137cec09ecf3a05f4fddffd7dfcd1585403449e74198" |
|
768 | 769 | "checksum either 1.5.3 (registry+https://github.com/rust-lang/crates.io-index)" = "bb1f6b1ce1c140482ea30ddd3335fc0024ac7ee112895426e0a629a6c20adfe3" |
|
769 | 770 | "checksum fuchsia-cprng 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)" = "a06f77d526c1a601b7c4cdd98f54b5eaabffc14d5f2f0296febdc7f357c6d3ba" |
|
770 | 771 | "checksum getrandom 0.1.14 (registry+https://github.com/rust-lang/crates.io-index)" = "7abc8dd8451921606d809ba32e95b6111925cd2906060d2dcc29c070220503eb" |
|
771 | 772 | "checksum hermit-abi 0.1.8 (registry+https://github.com/rust-lang/crates.io-index)" = "1010591b26bbfe835e9faeabeb11866061cc7dcebffd56ad7d0942d0e61aefd8" |
|
772 | 773 | "checksum hex 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)" = "644f9158b2f133fd50f5fb3242878846d9eb792e445c893805ff0e3824006e35" |
|
773 | 774 | "checksum lazy_static 1.4.0 (registry+https://github.com/rust-lang/crates.io-index)" = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646" |
|
774 | 775 | "checksum libc 0.2.67 (registry+https://github.com/rust-lang/crates.io-index)" = "eb147597cdf94ed43ab7a9038716637d2d1bf2bc571da995d0028dec06bd3018" |
|
775 | 776 | "checksum log 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)" = "14b6052be84e6b71ab17edffc2eeabf5c2c3ae1fdb464aae35ac50c67a44e1f7" |
|
776 | 777 | "checksum maybe-uninit 2.0.0 (registry+https://github.com/rust-lang/crates.io-index)" = "60302e4db3a61da70c0cb7991976248362f30319e88850c487b9b95bbf059e00" |
|
777 | 778 | "checksum memchr 2.3.3 (registry+https://github.com/rust-lang/crates.io-index)" = "3728d817d99e5ac407411fa471ff9800a778d88a24685968b36824eaf4bee400" |
|
778 | 779 | "checksum memmap 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)" = "6585fd95e7bb50d6cc31e20d4cf9afb4e2ba16c5846fc76793f11218da9c475b" |
|
779 | 780 | "checksum memoffset 0.5.3 (registry+https://github.com/rust-lang/crates.io-index)" = "75189eb85871ea5c2e2c15abbdd541185f63b408415e5051f5cac122d8c774b9" |
|
780 | 781 | "checksum micro-timer 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)" = "16439fea388f712c1df7737ceb8f784d407844624b4796faf1e1bf8bbaa97445" |
|
781 | 782 | "checksum num-integer 0.1.42 (registry+https://github.com/rust-lang/crates.io-index)" = "3f6ea62e9d81a77cd3ee9a2a5b9b609447857f3d358704331e4ef39eb247fcba" |
|
782 | 783 | "checksum num-traits 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)" = "c62be47e61d1842b9170f0fdeec8eba98e60e90e5446449a0545e5152acd7096" |
|
783 | 784 | "checksum num_cpus 1.12.0 (registry+https://github.com/rust-lang/crates.io-index)" = "46203554f085ff89c235cd12f7075f3233af9b11ed7c9e16dfe2560d03313ce6" |
|
784 | 785 | "checksum output_vt100 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)" = "53cdc5b785b7a58c5aad8216b3dfa114df64b0b06ae6e1501cef91df2fbdf8f9" |
|
785 | 786 | "checksum ppv-lite86 0.2.6 (registry+https://github.com/rust-lang/crates.io-index)" = "74490b50b9fbe561ac330df47c08f3f33073d2d00c150f719147d7c54522fa1b" |
|
786 | 787 | "checksum pretty_assertions 0.6.1 (registry+https://github.com/rust-lang/crates.io-index)" = "3f81e1644e1b54f5a68959a29aa86cde704219254669da328ecfdf6a1f09d427" |
|
787 | 788 | "checksum proc-macro2 1.0.9 (registry+https://github.com/rust-lang/crates.io-index)" = "6c09721c6781493a2a492a96b5a5bf19b65917fe6728884e7c44dd0c60ca3435" |
|
788 | 789 | "checksum python27-sys 0.4.1 (registry+https://github.com/rust-lang/crates.io-index)" = "67cb041de8615111bf224dd75667af5f25c6e032118251426fed7f1b70ce4c8c" |
|
789 | 790 | "checksum python3-sys 0.4.1 (registry+https://github.com/rust-lang/crates.io-index)" = "90af11779515a1e530af60782d273b59ac79d33b0e253c071a728563957c76d4" |
|
790 | 791 | "checksum quote 1.0.3 (registry+https://github.com/rust-lang/crates.io-index)" = "2bdc6c187c65bca4260c9011c9e3132efe4909da44726bad24cf7572ae338d7f" |
|
791 | 792 | "checksum rand 0.6.5 (registry+https://github.com/rust-lang/crates.io-index)" = "6d71dacdc3c88c1fde3885a3be3fbab9f35724e6ce99467f7d9c5026132184ca" |
|
792 | 793 | "checksum rand 0.7.3 (registry+https://github.com/rust-lang/crates.io-index)" = "6a6b1679d49b24bbfe0c803429aa1874472f50d9b363131f0e89fc356b544d03" |
|
793 | 794 | "checksum rand_chacha 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)" = "556d3a1ca6600bfcbab7c7c91ccb085ac7fbbcd70e008a98742e7847f4f7bcef" |
|
794 | 795 | "checksum rand_chacha 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)" = "f4c8ed856279c9737206bf725bf36935d8666ead7aa69b52be55af369d193402" |
|
795 | 796 | "checksum rand_core 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)" = "7a6fdeb83b075e8266dcc8762c22776f6877a63111121f5f8c7411e5be7eed4b" |
|
796 | 797 | "checksum rand_core 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)" = "9c33a3c44ca05fa6f1807d8e6743f3824e8509beca625669633be0acbdf509dc" |
|
797 | 798 | "checksum rand_core 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)" = "90bde5296fc891b0cef12a6d03ddccc162ce7b2aff54160af9338f8d40df6d19" |
|
798 | 799 | "checksum rand_hc 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)" = "7b40677c7be09ae76218dc623efbf7b18e34bced3f38883af07bb75630a21bc4" |
|
799 | 800 | "checksum rand_hc 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)" = "ca3129af7b92a17112d59ad498c6f81eaf463253766b90396d39ea7a39d6613c" |
|
800 | 801 | "checksum rand_isaac 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)" = "ded997c9d5f13925be2a6fd7e66bf1872597f759fd9dd93513dd7e92e5a5ee08" |
|
801 | 802 | "checksum rand_jitter 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)" = "1166d5c91dc97b88d1decc3285bb0a99ed84b05cfd0bc2341bdf2d43fc41e39b" |
|
802 | 803 | "checksum rand_os 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)" = "7b75f676a1e053fc562eafbb47838d67c84801e38fc1ba459e8f180deabd5071" |
|
803 | 804 | "checksum rand_pcg 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)" = "abf9b09b01790cfe0364f52bf32995ea3c39f4d2dd011eac241d2914146d0b44" |
|
804 | 805 | "checksum rand_xorshift 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)" = "cbf7e9e623549b0e21f6e97cf8ecf247c1a8fd2e8a992ae265314300b2455d5c" |
|
805 | 806 | "checksum rayon 1.3.0 (registry+https://github.com/rust-lang/crates.io-index)" = "db6ce3297f9c85e16621bb8cca38a06779ffc31bb8184e1be4bed2be4678a098" |
|
806 | 807 | "checksum rayon-core 1.7.0 (registry+https://github.com/rust-lang/crates.io-index)" = "08a89b46efaf957e52b18062fb2f4660f8b8a4dde1807ca002690868ef2c85a9" |
|
807 | 808 | "checksum rdrand 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)" = "678054eb77286b51581ba43620cc911abf02758c91f93f479767aed0f90458b2" |
|
808 | 809 | "checksum redox_syscall 0.1.56 (registry+https://github.com/rust-lang/crates.io-index)" = "2439c63f3f6139d1b57529d16bc3b8bb855230c8efcc5d3a896c8bea7c3b1e84" |
|
809 | 810 | "checksum regex 1.3.4 (registry+https://github.com/rust-lang/crates.io-index)" = "322cf97724bea3ee221b78fe25ac9c46114ebb51747ad5babd51a2fc6a8235a8" |
|
810 | 811 | "checksum regex-syntax 0.6.16 (registry+https://github.com/rust-lang/crates.io-index)" = "1132f845907680735a84409c3bebc64d1364a5683ffbce899550cd09d5eaefc1" |
|
811 | 812 | "checksum remove_dir_all 0.5.2 (registry+https://github.com/rust-lang/crates.io-index)" = "4a83fa3702a688b9359eccba92d153ac33fd2e8462f9e0e3fdf155239ea7792e" |
|
812 | 813 | "checksum rustc_version 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)" = "138e3e0acb6c9fb258b19b67cb8abd63c00679d2851805ea151465464fe9030a" |
|
813 | 814 | "checksum same-file 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)" = "93fc1dc3aaa9bfed95e02e6eadabb4baf7e3078b0bd1b4d7b6b0b68378900502" |
|
814 | 815 | "checksum scopeguard 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)" = "d29ab0c6d3fc0ee92fe66e2d99f700eab17a8d57d1c1d3b748380fb20baa78cd" |
|
815 | 816 | "checksum semver 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)" = "1d7eb9ef2c18661902cc47e535f9bc51b78acd254da71d375c2f6720d9a40403" |
|
816 | 817 | "checksum semver-parser 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)" = "388a1df253eca08550bef6c72392cfe7c30914bf41df5269b68cbd6ff8f570a3" |
|
817 | 818 | "checksum simple_logger 1.6.0 (registry+https://github.com/rust-lang/crates.io-index)" = "fea0c4611f32f4c2bac73754f22dca1f57e6c1945e0590dae4e5f2a077b92367" |
|
818 | 819 | "checksum strsim 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)" = "8ea5119cdb4c55b55d432abb513a0429384878c15dde60cc77b1c99de1a95a6a" |
|
819 | 820 | "checksum syn 1.0.16 (registry+https://github.com/rust-lang/crates.io-index)" = "123bd9499cfb380418d509322d7a6d52e5315f064fe4b3ad18a53d6b92c07859" |
|
820 | 821 | "checksum tempfile 3.1.0 (registry+https://github.com/rust-lang/crates.io-index)" = "7a6e24d9338a0a5be79593e2fa15a648add6138caa803e2d5bc782c371732ca9" |
|
821 | 822 | "checksum textwrap 0.11.0 (registry+https://github.com/rust-lang/crates.io-index)" = "d326610f408c7a4eb6f51c37c330e496b08506c9457c9d34287ecc38809fb060" |
|
822 | 823 | "checksum thread_local 1.0.1 (registry+https://github.com/rust-lang/crates.io-index)" = "d40c6d1b69745a6ec6fb1ca717914848da4b44ae29d9b3080cbee91d72a69b14" |
|
823 | 824 | "checksum time 0.1.42 (registry+https://github.com/rust-lang/crates.io-index)" = "db8dcfca086c1143c9270ac42a2bbd8a7ee477b78ac8e45b19abfb0cbede4b6f" |
|
824 | 825 | "checksum twox-hash 1.5.0 (registry+https://github.com/rust-lang/crates.io-index)" = "3bfd5b7557925ce778ff9b9ef90e3ade34c524b5ff10e239c69a42d546d2af56" |
|
825 | 826 | "checksum unicode-width 0.1.7 (registry+https://github.com/rust-lang/crates.io-index)" = "caaa9d531767d1ff2150b9332433f32a24622147e5ebb1f26409d5da67afd479" |
|
826 | 827 | "checksum unicode-xid 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)" = "826e7639553986605ec5979c7dd957c7895e93eabed50ab2ffa7f6128a75097c" |
|
827 | 828 | "checksum vec_map 0.8.1 (registry+https://github.com/rust-lang/crates.io-index)" = "05c78687fb1a80548ae3250346c3db86a80a7cdd77bda190189f2d0a0987c81a" |
|
828 | 829 | "checksum wasi 0.9.0+wasi-snapshot-preview1 (registry+https://github.com/rust-lang/crates.io-index)" = "cccddf32554fecc6acb585f82a32a72e28b48f8c4c1883ddfeeeaa96f7d8e519" |
|
829 | 830 | "checksum winapi 0.3.8 (registry+https://github.com/rust-lang/crates.io-index)" = "8093091eeb260906a183e6ae1abdba2ef5ef2257a21801128899c3fc699229c6" |
|
830 | 831 | "checksum winapi-i686-pc-windows-gnu 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)" = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6" |
|
831 | 832 | "checksum winapi-util 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)" = "4ccfbf554c6ad11084fb7517daca16cfdcaccbdadba4fc336f032a8b12c2ad80" |
|
832 | 833 | "checksum winapi-x86_64-pc-windows-gnu 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)" = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" |
@@ -1,31 +1,32 b'' | |||
|
1 | 1 | [package] |
|
2 | 2 | name = "hg-cpython" |
|
3 | 3 | version = "0.1.0" |
|
4 | 4 | authors = ["Georges Racinet <gracinet@anybox.fr>"] |
|
5 | 5 | edition = "2018" |
|
6 | 6 | |
|
7 | 7 | [lib] |
|
8 | 8 | name='rusthg' |
|
9 | 9 | crate-type = ["cdylib"] |
|
10 | 10 | |
|
11 | 11 | [features] |
|
12 | 12 | default = ["python27"] |
|
13 | 13 | with-re2 = ["hg-core/with-re2"] |
|
14 | 14 | |
|
15 | 15 | # Features to build an extension module: |
|
16 | 16 | python27 = ["cpython/python27-sys", "cpython/extension-module-2-7"] |
|
17 | 17 | python3 = ["cpython/python3-sys", "cpython/extension-module"] |
|
18 | 18 | |
|
19 | 19 | # Enable one of these features to build a test executable linked to libpython: |
|
20 | 20 | # e.g. cargo test --no-default-features --features python27-bin |
|
21 | 21 | python27-bin = ["cpython/python27-sys"] |
|
22 | 22 | python3-bin = ["cpython/python3-sys"] |
|
23 | 23 | |
|
24 | 24 | [dependencies] |
|
25 | 25 | hg-core = { path = "../hg-core"} |
|
26 | 26 | libc = '*' |
|
27 | log = "0.4.8" | |
|
27 | 28 | simple_logger = "1.6.0" |
|
28 | 29 | |
|
29 | 30 | [dependencies.cpython] |
|
30 | 31 | version = "0.4" |
|
31 | 32 | default-features = false |
@@ -1,294 +1,297 b'' | |||
|
1 | 1 | // status.rs |
|
2 | 2 | // |
|
3 | 3 | // Copyright 2019, Raphaël Gomès <rgomes@octobus.net> |
|
4 | 4 | // |
|
5 | 5 | // This software may be used and distributed according to the terms of the |
|
6 | 6 | // GNU General Public License version 2 or any later version. |
|
7 | 7 | |
|
8 | 8 | //! Bindings for the `hg::status` module provided by the |
|
9 | 9 | //! `hg-core` crate. From Python, this will be seen as |
|
10 | 10 | //! `rustext.dirstate.status`. |
|
11 | 11 | |
|
12 | 12 | use crate::{dirstate::DirstateMap, exceptions::FallbackError}; |
|
13 | 13 | use cpython::{ |
|
14 | 14 | exc::ValueError, ObjectProtocol, PyBytes, PyErr, PyList, PyObject, |
|
15 | 15 | PyResult, PyTuple, Python, PythonObject, ToPyObject, |
|
16 | 16 | }; |
|
17 | 17 | use hg::{ |
|
18 | 18 | matchers::{AlwaysMatcher, FileMatcher, IncludeMatcher}, |
|
19 | 19 | parse_pattern_syntax, status, |
|
20 | 20 | utils::{ |
|
21 | 21 | files::{get_bytes_from_path, get_path_from_bytes}, |
|
22 | 22 | hg_path::{HgPath, HgPathBuf}, |
|
23 | 23 | }, |
|
24 | 24 | BadMatch, DirstateStatus, IgnorePattern, PatternFileWarning, StatusError, |
|
25 | 25 | StatusOptions, |
|
26 | 26 | }; |
|
27 | 27 | use std::borrow::{Borrow, Cow}; |
|
28 | 28 | |
|
29 | 29 | /// This will be useless once trait impls for collection are added to `PyBytes` |
|
30 | 30 | /// upstream. |
|
31 | 31 | fn collect_pybytes_list( |
|
32 | 32 | py: Python, |
|
33 | 33 | collection: &[impl AsRef<HgPath>], |
|
34 | 34 | ) -> PyList { |
|
35 | 35 | let list = PyList::new(py, &[]); |
|
36 | 36 | |
|
37 | 37 | for path in collection.iter() { |
|
38 | 38 | list.append( |
|
39 | 39 | py, |
|
40 | 40 | PyBytes::new(py, path.as_ref().as_bytes()).into_object(), |
|
41 | 41 | ) |
|
42 | 42 | } |
|
43 | 43 | |
|
44 | 44 | list |
|
45 | 45 | } |
|
46 | 46 | |
|
47 | 47 | fn collect_bad_matches( |
|
48 | 48 | py: Python, |
|
49 | 49 | collection: &[(impl AsRef<HgPath>, BadMatch)], |
|
50 | 50 | ) -> PyResult<PyList> { |
|
51 | 51 | let list = PyList::new(py, &[]); |
|
52 | 52 | |
|
53 | 53 | let os = py.import("os")?; |
|
54 | 54 | let get_error_message = |code: i32| -> PyResult<_> { |
|
55 | 55 | os.call( |
|
56 | 56 | py, |
|
57 | 57 | "strerror", |
|
58 | 58 | PyTuple::new(py, &[code.to_py_object(py).into_object()]), |
|
59 | 59 | None, |
|
60 | 60 | ) |
|
61 | 61 | }; |
|
62 | 62 | |
|
63 | 63 | for (path, bad_match) in collection.iter() { |
|
64 | 64 | let message = match bad_match { |
|
65 | 65 | BadMatch::OsError(code) => get_error_message(*code)?, |
|
66 | 66 | BadMatch::BadType(bad_type) => format!( |
|
67 | 67 | "unsupported file type (type is {})", |
|
68 | 68 | bad_type.to_string() |
|
69 | 69 | ) |
|
70 | 70 | .to_py_object(py) |
|
71 | 71 | .into_object(), |
|
72 | 72 | }; |
|
73 | 73 | list.append( |
|
74 | 74 | py, |
|
75 | 75 | (PyBytes::new(py, path.as_ref().as_bytes()), message) |
|
76 | 76 | .to_py_object(py) |
|
77 | 77 | .into_object(), |
|
78 | 78 | ) |
|
79 | 79 | } |
|
80 | 80 | |
|
81 | 81 | Ok(list) |
|
82 | 82 | } |
|
83 | 83 | |
|
84 | 84 | fn handle_fallback(py: Python, err: StatusError) -> PyErr { |
|
85 | 85 | match err { |
|
86 | 86 | StatusError::Pattern(e) => { |
|
87 | PyErr::new::<FallbackError, _>(py, e.to_string()) | |
|
87 | let as_string = e.to_string(); | |
|
88 | log::trace!("Rust status fallback: `{}`", &as_string); | |
|
89 | ||
|
90 | PyErr::new::<FallbackError, _>(py, &as_string) | |
|
88 | 91 | } |
|
89 | 92 | e => PyErr::new::<ValueError, _>(py, e.to_string()), |
|
90 | 93 | } |
|
91 | 94 | } |
|
92 | 95 | |
|
93 | 96 | pub fn status_wrapper( |
|
94 | 97 | py: Python, |
|
95 | 98 | dmap: DirstateMap, |
|
96 | 99 | matcher: PyObject, |
|
97 | 100 | root_dir: PyObject, |
|
98 | 101 | ignore_files: PyList, |
|
99 | 102 | check_exec: bool, |
|
100 | 103 | last_normal_time: i64, |
|
101 | 104 | list_clean: bool, |
|
102 | 105 | list_ignored: bool, |
|
103 | 106 | list_unknown: bool, |
|
104 | 107 | ) -> PyResult<PyTuple> { |
|
105 | 108 | let bytes = root_dir.extract::<PyBytes>(py)?; |
|
106 | 109 | let root_dir = get_path_from_bytes(bytes.data(py)); |
|
107 | 110 | |
|
108 | 111 | let dmap: DirstateMap = dmap.to_py_object(py); |
|
109 | 112 | let dmap = dmap.get_inner(py); |
|
110 | 113 | |
|
111 | 114 | let ignore_files: PyResult<Vec<_>> = ignore_files |
|
112 | 115 | .iter(py) |
|
113 | 116 | .map(|b| { |
|
114 | 117 | let file = b.extract::<PyBytes>(py)?; |
|
115 | 118 | Ok(get_path_from_bytes(file.data(py)).to_owned()) |
|
116 | 119 | }) |
|
117 | 120 | .collect(); |
|
118 | 121 | let ignore_files = ignore_files?; |
|
119 | 122 | |
|
120 | 123 | match matcher.get_type(py).name(py).borrow() { |
|
121 | 124 | "alwaysmatcher" => { |
|
122 | 125 | let matcher = AlwaysMatcher; |
|
123 | 126 | let ((lookup, status_res), warnings) = status( |
|
124 | 127 | &dmap, |
|
125 | 128 | &matcher, |
|
126 | 129 | &root_dir, |
|
127 | 130 | &ignore_files, |
|
128 | 131 | StatusOptions { |
|
129 | 132 | check_exec, |
|
130 | 133 | last_normal_time, |
|
131 | 134 | list_clean, |
|
132 | 135 | list_ignored, |
|
133 | 136 | list_unknown, |
|
134 | 137 | }, |
|
135 | 138 | ) |
|
136 | 139 | .map_err(|e| handle_fallback(py, e))?; |
|
137 | 140 | build_response(py, lookup, status_res, warnings) |
|
138 | 141 | } |
|
139 | 142 | "exactmatcher" => { |
|
140 | 143 | let files = matcher.call_method( |
|
141 | 144 | py, |
|
142 | 145 | "files", |
|
143 | 146 | PyTuple::new(py, &[]), |
|
144 | 147 | None, |
|
145 | 148 | )?; |
|
146 | 149 | let files: PyList = files.cast_into(py)?; |
|
147 | 150 | let files: PyResult<Vec<HgPathBuf>> = files |
|
148 | 151 | .iter(py) |
|
149 | 152 | .map(|f| { |
|
150 | 153 | Ok(HgPathBuf::from_bytes( |
|
151 | 154 | f.extract::<PyBytes>(py)?.data(py), |
|
152 | 155 | )) |
|
153 | 156 | }) |
|
154 | 157 | .collect(); |
|
155 | 158 | |
|
156 | 159 | let files = files?; |
|
157 | 160 | let matcher = FileMatcher::new(&files) |
|
158 | 161 | .map_err(|e| PyErr::new::<ValueError, _>(py, e.to_string()))?; |
|
159 | 162 | let ((lookup, status_res), warnings) = status( |
|
160 | 163 | &dmap, |
|
161 | 164 | &matcher, |
|
162 | 165 | &root_dir, |
|
163 | 166 | &ignore_files, |
|
164 | 167 | StatusOptions { |
|
165 | 168 | check_exec, |
|
166 | 169 | last_normal_time, |
|
167 | 170 | list_clean, |
|
168 | 171 | list_ignored, |
|
169 | 172 | list_unknown, |
|
170 | 173 | }, |
|
171 | 174 | ) |
|
172 | 175 | .map_err(|e| handle_fallback(py, e))?; |
|
173 | 176 | build_response(py, lookup, status_res, warnings) |
|
174 | 177 | } |
|
175 | 178 | "includematcher" => { |
|
176 | 179 | // Get the patterns from Python even though most of them are |
|
177 | 180 | // redundant with those we will parse later on, as they include |
|
178 | 181 | // those passed from the command line. |
|
179 | 182 | let ignore_patterns: PyResult<Vec<_>> = matcher |
|
180 | 183 | .getattr(py, "_kindpats")? |
|
181 | 184 | .iter(py)? |
|
182 | 185 | .map(|k| { |
|
183 | 186 | let k = k?; |
|
184 | 187 | let syntax = parse_pattern_syntax( |
|
185 | 188 | &[ |
|
186 | 189 | k.get_item(py, 0)? |
|
187 | 190 | .extract::<PyBytes>(py)? |
|
188 | 191 | .data(py), |
|
189 | 192 | &b":"[..], |
|
190 | 193 | ] |
|
191 | 194 | .concat(), |
|
192 | 195 | ) |
|
193 | 196 | .map_err(|e| { |
|
194 | 197 | handle_fallback(py, StatusError::Pattern(e)) |
|
195 | 198 | })?; |
|
196 | 199 | let pattern = k.get_item(py, 1)?.extract::<PyBytes>(py)?; |
|
197 | 200 | let pattern = pattern.data(py); |
|
198 | 201 | let source = k.get_item(py, 2)?.extract::<PyBytes>(py)?; |
|
199 | 202 | let source = get_path_from_bytes(source.data(py)); |
|
200 | 203 | let new = IgnorePattern::new(syntax, pattern, source); |
|
201 | 204 | Ok(new) |
|
202 | 205 | }) |
|
203 | 206 | .collect(); |
|
204 | 207 | |
|
205 | 208 | let ignore_patterns = ignore_patterns?; |
|
206 | 209 | let mut all_warnings = vec![]; |
|
207 | 210 | |
|
208 | 211 | let (matcher, warnings) = |
|
209 | 212 | IncludeMatcher::new(ignore_patterns, &root_dir) |
|
210 | 213 | .map_err(|e| handle_fallback(py, e.into()))?; |
|
211 | 214 | all_warnings.extend(warnings); |
|
212 | 215 | |
|
213 | 216 | let ((lookup, status_res), warnings) = status( |
|
214 | 217 | &dmap, |
|
215 | 218 | &matcher, |
|
216 | 219 | &root_dir, |
|
217 | 220 | &ignore_files, |
|
218 | 221 | StatusOptions { |
|
219 | 222 | check_exec, |
|
220 | 223 | last_normal_time, |
|
221 | 224 | list_clean, |
|
222 | 225 | list_ignored, |
|
223 | 226 | list_unknown, |
|
224 | 227 | }, |
|
225 | 228 | ) |
|
226 | 229 | .map_err(|e| handle_fallback(py, e))?; |
|
227 | 230 | |
|
228 | 231 | all_warnings.extend(warnings); |
|
229 | 232 | |
|
230 | 233 | build_response(py, lookup, status_res, all_warnings) |
|
231 | 234 | } |
|
232 | 235 | e => { |
|
233 | 236 | return Err(PyErr::new::<ValueError, _>( |
|
234 | 237 | py, |
|
235 | 238 | format!("Unsupported matcher {}", e), |
|
236 | 239 | )); |
|
237 | 240 | } |
|
238 | 241 | } |
|
239 | 242 | } |
|
240 | 243 | |
|
241 | 244 | fn build_response( |
|
242 | 245 | py: Python, |
|
243 | 246 | lookup: Vec<Cow<HgPath>>, |
|
244 | 247 | status_res: DirstateStatus, |
|
245 | 248 | warnings: Vec<PatternFileWarning>, |
|
246 | 249 | ) -> PyResult<PyTuple> { |
|
247 | 250 | let modified = collect_pybytes_list(py, status_res.modified.as_ref()); |
|
248 | 251 | let added = collect_pybytes_list(py, status_res.added.as_ref()); |
|
249 | 252 | let removed = collect_pybytes_list(py, status_res.removed.as_ref()); |
|
250 | 253 | let deleted = collect_pybytes_list(py, status_res.deleted.as_ref()); |
|
251 | 254 | let clean = collect_pybytes_list(py, status_res.clean.as_ref()); |
|
252 | 255 | let ignored = collect_pybytes_list(py, status_res.ignored.as_ref()); |
|
253 | 256 | let unknown = collect_pybytes_list(py, status_res.unknown.as_ref()); |
|
254 | 257 | let lookup = collect_pybytes_list(py, lookup.as_ref()); |
|
255 | 258 | let bad = collect_bad_matches(py, status_res.bad.as_ref())?; |
|
256 | 259 | let py_warnings = PyList::new(py, &[]); |
|
257 | 260 | for warning in warnings.iter() { |
|
258 | 261 | // We use duck-typing on the Python side for dispatch, good enough for |
|
259 | 262 | // now. |
|
260 | 263 | match warning { |
|
261 | 264 | PatternFileWarning::InvalidSyntax(file, syn) => { |
|
262 | 265 | py_warnings.append( |
|
263 | 266 | py, |
|
264 | 267 | ( |
|
265 | 268 | PyBytes::new(py, &get_bytes_from_path(&file)), |
|
266 | 269 | PyBytes::new(py, syn), |
|
267 | 270 | ) |
|
268 | 271 | .to_py_object(py) |
|
269 | 272 | .into_object(), |
|
270 | 273 | ); |
|
271 | 274 | } |
|
272 | 275 | PatternFileWarning::NoSuchFile(file) => py_warnings.append( |
|
273 | 276 | py, |
|
274 | 277 | PyBytes::new(py, &get_bytes_from_path(&file)).into_object(), |
|
275 | 278 | ), |
|
276 | 279 | } |
|
277 | 280 | } |
|
278 | 281 | |
|
279 | 282 | Ok(PyTuple::new( |
|
280 | 283 | py, |
|
281 | 284 | &[ |
|
282 | 285 | lookup.into_object(), |
|
283 | 286 | modified.into_object(), |
|
284 | 287 | added.into_object(), |
|
285 | 288 | removed.into_object(), |
|
286 | 289 | deleted.into_object(), |
|
287 | 290 | clean.into_object(), |
|
288 | 291 | ignored.into_object(), |
|
289 | 292 | unknown.into_object(), |
|
290 | 293 | py_warnings.into_object(), |
|
291 | 294 | bad.into_object(), |
|
292 | 295 | ][..], |
|
293 | 296 | )) |
|
294 | 297 | } |
General Comments 0
You need to be logged in to leave comments.
Login now