##// END OF EJS Templates
rust: jettison Python 2 support...
Augie Fackler -
r49694:7b068abe default
parent child Browse files
Show More
@@ -1,1153 +1,1142
1 1 # This file is automatically @generated by Cargo.
2 2 # It is not intended for manual editing.
3 3 version = 3
4 4
5 5 [[package]]
6 6 name = "adler"
7 7 version = "0.2.3"
8 8 source = "registry+https://github.com/rust-lang/crates.io-index"
9 9 checksum = "ee2a4ec343196209d6594e19543ae87a39f96d5534d7174822a3ad825dd6ed7e"
10 10
11 11 [[package]]
12 12 name = "aho-corasick"
13 13 version = "0.7.15"
14 14 source = "registry+https://github.com/rust-lang/crates.io-index"
15 15 checksum = "7404febffaa47dac81aa44dba71523c9d069b1bdc50a77db41195149e17f68e5"
16 16 dependencies = [
17 17 "memchr",
18 18 ]
19 19
20 20 [[package]]
21 21 name = "ansi_term"
22 22 version = "0.11.0"
23 23 source = "registry+https://github.com/rust-lang/crates.io-index"
24 24 checksum = "ee49baf6cb617b853aa8d93bf420db2383fab46d314482ca2803b40d5fde979b"
25 25 dependencies = [
26 26 "winapi",
27 27 ]
28 28
29 29 [[package]]
30 30 name = "atty"
31 31 version = "0.2.14"
32 32 source = "registry+https://github.com/rust-lang/crates.io-index"
33 33 checksum = "d9b39be18770d11421cdb1b9947a45dd3f37e93092cbf377614828a319d5fee8"
34 34 dependencies = [
35 35 "hermit-abi",
36 36 "libc",
37 37 "winapi",
38 38 ]
39 39
40 40 [[package]]
41 41 name = "autocfg"
42 42 version = "1.0.1"
43 43 source = "registry+https://github.com/rust-lang/crates.io-index"
44 44 checksum = "cdb031dd78e28731d87d56cc8ffef4a8f36ca26c38fe2de700543e627f8a464a"
45 45
46 46 [[package]]
47 47 name = "bitflags"
48 48 version = "1.2.1"
49 49 source = "registry+https://github.com/rust-lang/crates.io-index"
50 50 checksum = "cf1de2fe8c75bc145a2f577add951f8134889b4795d47466a54a5c846d691693"
51 51
52 52 [[package]]
53 53 name = "bitmaps"
54 54 version = "2.1.0"
55 55 source = "registry+https://github.com/rust-lang/crates.io-index"
56 56 checksum = "031043d04099746d8db04daf1fa424b2bc8bd69d92b25962dcde24da39ab64a2"
57 57 dependencies = [
58 58 "typenum",
59 59 ]
60 60
61 61 [[package]]
62 62 name = "block-buffer"
63 63 version = "0.9.0"
64 64 source = "registry+https://github.com/rust-lang/crates.io-index"
65 65 checksum = "4152116fd6e9dadb291ae18fc1ec3575ed6d84c29642d97890f4b4a3417297e4"
66 66 dependencies = [
67 67 "generic-array",
68 68 ]
69 69
70 70 [[package]]
71 71 name = "byteorder"
72 72 version = "1.3.4"
73 73 source = "registry+https://github.com/rust-lang/crates.io-index"
74 74 checksum = "08c48aae112d48ed9f069b33538ea9e3e90aa263cfa3d1c24309612b1f7472de"
75 75
76 76 [[package]]
77 77 name = "bytes-cast"
78 78 version = "0.2.0"
79 79 source = "registry+https://github.com/rust-lang/crates.io-index"
80 80 checksum = "0d434f9a4ecbe987e7ccfda7274b6f82ea52c9b63742565a65cb5e8ba0f2c452"
81 81 dependencies = [
82 82 "bytes-cast-derive",
83 83 ]
84 84
85 85 [[package]]
86 86 name = "bytes-cast-derive"
87 87 version = "0.1.0"
88 88 source = "registry+https://github.com/rust-lang/crates.io-index"
89 89 checksum = "cb936af9de38476664d6b58e529aff30d482e4ce1c5e150293d00730b0d81fdb"
90 90 dependencies = [
91 91 "proc-macro2",
92 92 "quote",
93 93 "syn",
94 94 ]
95 95
96 96 [[package]]
97 97 name = "cc"
98 98 version = "1.0.66"
99 99 source = "registry+https://github.com/rust-lang/crates.io-index"
100 100 checksum = "4c0496836a84f8d0495758516b8621a622beb77c0fed418570e50764093ced48"
101 101 dependencies = [
102 102 "jobserver",
103 103 ]
104 104
105 105 [[package]]
106 106 name = "cfg-if"
107 107 version = "0.1.10"
108 108 source = "registry+https://github.com/rust-lang/crates.io-index"
109 109 checksum = "4785bdd1c96b2a846b2bd7cc02e86b6b3dbf14e7e53446c4f54c92a361040822"
110 110
111 111 [[package]]
112 112 name = "cfg-if"
113 113 version = "1.0.0"
114 114 source = "registry+https://github.com/rust-lang/crates.io-index"
115 115 checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
116 116
117 117 [[package]]
118 118 name = "chrono"
119 119 version = "0.4.19"
120 120 source = "registry+https://github.com/rust-lang/crates.io-index"
121 121 checksum = "670ad68c9088c2a963aaa298cb369688cf3f9465ce5e2d4ca10e6e0098a1ce73"
122 122 dependencies = [
123 123 "libc",
124 124 "num-integer",
125 125 "num-traits",
126 126 "time",
127 127 "winapi",
128 128 ]
129 129
130 130 [[package]]
131 131 name = "clap"
132 132 version = "2.33.3"
133 133 source = "registry+https://github.com/rust-lang/crates.io-index"
134 134 checksum = "37e58ac78573c40708d45522f0d80fa2f01cc4f9b4e2bf749807255454312002"
135 135 dependencies = [
136 136 "ansi_term",
137 137 "atty",
138 138 "bitflags",
139 139 "strsim",
140 140 "textwrap",
141 141 "unicode-width",
142 142 "vec_map",
143 143 ]
144 144
145 145 [[package]]
146 146 name = "const_fn"
147 147 version = "0.4.4"
148 148 source = "registry+https://github.com/rust-lang/crates.io-index"
149 149 checksum = "cd51eab21ab4fd6a3bf889e2d0958c0a6e3a61ad04260325e919e652a2a62826"
150 150
151 151 [[package]]
152 152 name = "cpufeatures"
153 153 version = "0.1.4"
154 154 source = "registry+https://github.com/rust-lang/crates.io-index"
155 155 checksum = "ed00c67cb5d0a7d64a44f6ad2668db7e7530311dd53ea79bcd4fb022c64911c8"
156 156 dependencies = [
157 157 "libc",
158 158 ]
159 159
160 160 [[package]]
161 161 name = "cpython"
162 162 version = "0.7.0"
163 163 source = "registry+https://github.com/rust-lang/crates.io-index"
164 164 checksum = "b7d46ba8ace7f3a1d204ac5060a706d0a68de6b42eafb6a586cc08bebcffe664"
165 165 dependencies = [
166 166 "libc",
167 167 "num-traits",
168 168 "paste",
169 "python27-sys",
170 169 "python3-sys",
171 170 ]
172 171
173 172 [[package]]
174 173 name = "crc32fast"
175 174 version = "1.2.1"
176 175 source = "registry+https://github.com/rust-lang/crates.io-index"
177 176 checksum = "81156fece84ab6a9f2afdb109ce3ae577e42b1228441eded99bd77f627953b1a"
178 177 dependencies = [
179 178 "cfg-if 1.0.0",
180 179 ]
181 180
182 181 [[package]]
183 182 name = "crossbeam-channel"
184 183 version = "0.4.4"
185 184 source = "registry+https://github.com/rust-lang/crates.io-index"
186 185 checksum = "b153fe7cbef478c567df0f972e02e6d736db11affe43dfc9c56a9374d1adfb87"
187 186 dependencies = [
188 187 "crossbeam-utils 0.7.2",
189 188 "maybe-uninit",
190 189 ]
191 190
192 191 [[package]]
193 192 name = "crossbeam-channel"
194 193 version = "0.5.0"
195 194 source = "registry+https://github.com/rust-lang/crates.io-index"
196 195 checksum = "dca26ee1f8d361640700bde38b2c37d8c22b3ce2d360e1fc1c74ea4b0aa7d775"
197 196 dependencies = [
198 197 "cfg-if 1.0.0",
199 198 "crossbeam-utils 0.8.1",
200 199 ]
201 200
202 201 [[package]]
203 202 name = "crossbeam-deque"
204 203 version = "0.8.0"
205 204 source = "registry+https://github.com/rust-lang/crates.io-index"
206 205 checksum = "94af6efb46fef72616855b036a624cf27ba656ffc9be1b9a3c931cfc7749a9a9"
207 206 dependencies = [
208 207 "cfg-if 1.0.0",
209 208 "crossbeam-epoch",
210 209 "crossbeam-utils 0.8.1",
211 210 ]
212 211
213 212 [[package]]
214 213 name = "crossbeam-epoch"
215 214 version = "0.9.1"
216 215 source = "registry+https://github.com/rust-lang/crates.io-index"
217 216 checksum = "a1aaa739f95311c2c7887a76863f500026092fb1dce0161dab577e559ef3569d"
218 217 dependencies = [
219 218 "cfg-if 1.0.0",
220 219 "const_fn",
221 220 "crossbeam-utils 0.8.1",
222 221 "lazy_static",
223 222 "memoffset",
224 223 "scopeguard",
225 224 ]
226 225
227 226 [[package]]
228 227 name = "crossbeam-utils"
229 228 version = "0.7.2"
230 229 source = "registry+https://github.com/rust-lang/crates.io-index"
231 230 checksum = "c3c7c73a2d1e9fc0886a08b93e98eb643461230d5f1925e4036204d5f2e261a8"
232 231 dependencies = [
233 232 "autocfg",
234 233 "cfg-if 0.1.10",
235 234 "lazy_static",
236 235 ]
237 236
238 237 [[package]]
239 238 name = "crossbeam-utils"
240 239 version = "0.8.1"
241 240 source = "registry+https://github.com/rust-lang/crates.io-index"
242 241 checksum = "02d96d1e189ef58269ebe5b97953da3274d83a93af647c2ddd6f9dab28cedb8d"
243 242 dependencies = [
244 243 "autocfg",
245 244 "cfg-if 1.0.0",
246 245 "lazy_static",
247 246 ]
248 247
249 248 [[package]]
250 249 name = "ctor"
251 250 version = "0.1.16"
252 251 source = "registry+https://github.com/rust-lang/crates.io-index"
253 252 checksum = "7fbaabec2c953050352311293be5c6aba8e141ba19d6811862b232d6fd020484"
254 253 dependencies = [
255 254 "quote",
256 255 "syn",
257 256 ]
258 257
259 258 [[package]]
260 259 name = "derive_more"
261 260 version = "0.99.11"
262 261 source = "registry+https://github.com/rust-lang/crates.io-index"
263 262 checksum = "41cb0e6161ad61ed084a36ba71fbba9e3ac5aee3606fb607fe08da6acbcf3d8c"
264 263 dependencies = [
265 264 "proc-macro2",
266 265 "quote",
267 266 "syn",
268 267 ]
269 268
270 269 [[package]]
271 270 name = "difference"
272 271 version = "2.0.0"
273 272 source = "registry+https://github.com/rust-lang/crates.io-index"
274 273 checksum = "524cbf6897b527295dff137cec09ecf3a05f4fddffd7dfcd1585403449e74198"
275 274
276 275 [[package]]
277 276 name = "digest"
278 277 version = "0.9.0"
279 278 source = "registry+https://github.com/rust-lang/crates.io-index"
280 279 checksum = "d3dd60d1080a57a05ab032377049e0591415d2b31afd7028356dbf3cc6dcb066"
281 280 dependencies = [
282 281 "generic-array",
283 282 ]
284 283
285 284 [[package]]
286 285 name = "either"
287 286 version = "1.6.1"
288 287 source = "registry+https://github.com/rust-lang/crates.io-index"
289 288 checksum = "e78d4f1cc4ae33bbfc157ed5d5a5ef3bc29227303d595861deb238fcec4e9457"
290 289
291 290 [[package]]
292 291 name = "env_logger"
293 292 version = "0.7.1"
294 293 source = "registry+https://github.com/rust-lang/crates.io-index"
295 294 checksum = "44533bbbb3bb3c1fa17d9f2e4e38bbbaf8396ba82193c4cb1b6445d711445d36"
296 295 dependencies = [
297 296 "atty",
298 297 "humantime",
299 298 "log",
300 299 "regex",
301 300 "termcolor",
302 301 ]
303 302
304 303 [[package]]
305 304 name = "flate2"
306 305 version = "1.0.19"
307 306 source = "registry+https://github.com/rust-lang/crates.io-index"
308 307 checksum = "7411863d55df97a419aa64cb4d2f167103ea9d767e2c54a1868b7ac3f6b47129"
309 308 dependencies = [
310 309 "cfg-if 1.0.0",
311 310 "crc32fast",
312 311 "libc",
313 312 "libz-sys",
314 313 "miniz_oxide",
315 314 ]
316 315
317 316 [[package]]
318 317 name = "format-bytes"
319 318 version = "0.3.0"
320 319 source = "registry+https://github.com/rust-lang/crates.io-index"
321 320 checksum = "48942366ef93975da38e175ac9e10068c6fc08ca9e85930d4f098f4d5b14c2fd"
322 321 dependencies = [
323 322 "format-bytes-macros",
324 323 ]
325 324
326 325 [[package]]
327 326 name = "format-bytes-macros"
328 327 version = "0.4.0"
329 328 source = "registry+https://github.com/rust-lang/crates.io-index"
330 329 checksum = "203aadebefcc73d12038296c228eabf830f99cba991b0032adf20e9fa6ce7e4f"
331 330 dependencies = [
332 331 "proc-macro2",
333 332 "quote",
334 333 "syn",
335 334 ]
336 335
337 336 [[package]]
338 337 name = "generic-array"
339 338 version = "0.14.4"
340 339 source = "registry+https://github.com/rust-lang/crates.io-index"
341 340 checksum = "501466ecc8a30d1d3b7fc9229b122b2ce8ed6e9d9223f1138d4babb253e51817"
342 341 dependencies = [
343 342 "typenum",
344 343 "version_check",
345 344 ]
346 345
347 346 [[package]]
348 347 name = "getrandom"
349 348 version = "0.1.15"
350 349 source = "registry+https://github.com/rust-lang/crates.io-index"
351 350 checksum = "fc587bc0ec293155d5bfa6b9891ec18a1e330c234f896ea47fbada4cadbe47e6"
352 351 dependencies = [
353 352 "cfg-if 0.1.10",
354 353 "libc",
355 354 "wasi 0.9.0+wasi-snapshot-preview1",
356 355 ]
357 356
358 357 [[package]]
359 358 name = "getrandom"
360 359 version = "0.2.4"
361 360 source = "registry+https://github.com/rust-lang/crates.io-index"
362 361 checksum = "418d37c8b1d42553c93648be529cb70f920d3baf8ef469b74b9638df426e0b4c"
363 362 dependencies = [
364 363 "cfg-if 1.0.0",
365 364 "libc",
366 365 "wasi 0.10.0+wasi-snapshot-preview1",
367 366 ]
368 367
369 368 [[package]]
370 369 name = "glob"
371 370 version = "0.3.0"
372 371 source = "registry+https://github.com/rust-lang/crates.io-index"
373 372 checksum = "9b919933a397b79c37e33b77bb2aa3dc8eb6e165ad809e58ff75bc7db2e34574"
374 373
375 374 [[package]]
376 375 name = "hermit-abi"
377 376 version = "0.1.17"
378 377 source = "registry+https://github.com/rust-lang/crates.io-index"
379 378 checksum = "5aca5565f760fb5b220e499d72710ed156fdb74e631659e99377d9ebfbd13ae8"
380 379 dependencies = [
381 380 "libc",
382 381 ]
383 382
384 383 [[package]]
385 384 name = "hex"
386 385 version = "0.4.3"
387 386 source = "registry+https://github.com/rust-lang/crates.io-index"
388 387 checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70"
389 388
390 389 [[package]]
391 390 name = "hg-core"
392 391 version = "0.1.0"
393 392 dependencies = [
394 393 "bitflags",
395 394 "byteorder",
396 395 "bytes-cast",
397 396 "clap",
398 397 "crossbeam-channel 0.4.4",
399 398 "derive_more",
400 399 "flate2",
401 400 "format-bytes",
402 401 "home",
403 402 "im-rc",
404 403 "itertools",
405 404 "lazy_static",
406 405 "libc",
407 406 "log",
408 407 "memmap2",
409 408 "micro-timer",
410 409 "pretty_assertions",
411 410 "rand 0.8.4",
412 411 "rand_distr",
413 412 "rand_pcg",
414 413 "rayon",
415 414 "regex",
416 415 "same-file",
417 416 "sha-1",
418 417 "stable_deref_trait",
419 418 "tempfile",
420 419 "twox-hash",
421 420 "zstd",
422 421 ]
423 422
424 423 [[package]]
425 424 name = "hg-cpython"
426 425 version = "0.1.0"
427 426 dependencies = [
428 427 "cpython",
429 428 "crossbeam-channel 0.4.4",
430 429 "env_logger",
431 430 "hg-core",
432 431 "libc",
433 432 "log",
434 433 "stable_deref_trait",
435 434 "vcsgraph",
436 435 ]
437 436
438 437 [[package]]
439 438 name = "home"
440 439 version = "0.5.3"
441 440 source = "registry+https://github.com/rust-lang/crates.io-index"
442 441 checksum = "2456aef2e6b6a9784192ae780c0f15bc57df0e918585282325e8c8ac27737654"
443 442 dependencies = [
444 443 "winapi",
445 444 ]
446 445
447 446 [[package]]
448 447 name = "humantime"
449 448 version = "1.3.0"
450 449 source = "registry+https://github.com/rust-lang/crates.io-index"
451 450 checksum = "df004cfca50ef23c36850aaaa59ad52cc70d0e90243c3c7737a4dd32dc7a3c4f"
452 451 dependencies = [
453 452 "quick-error",
454 453 ]
455 454
456 455 [[package]]
457 456 name = "im-rc"
458 457 version = "15.0.0"
459 458 source = "registry+https://github.com/rust-lang/crates.io-index"
460 459 checksum = "3ca8957e71f04a205cb162508f9326aea04676c8dfd0711220190d6b83664f3f"
461 460 dependencies = [
462 461 "bitmaps",
463 462 "rand_core 0.5.1",
464 463 "rand_xoshiro",
465 464 "sized-chunks",
466 465 "typenum",
467 466 "version_check",
468 467 ]
469 468
470 469 [[package]]
471 470 name = "itertools"
472 471 version = "0.9.0"
473 472 source = "registry+https://github.com/rust-lang/crates.io-index"
474 473 checksum = "284f18f85651fe11e8a991b2adb42cb078325c996ed026d994719efcfca1d54b"
475 474 dependencies = [
476 475 "either",
477 476 ]
478 477
479 478 [[package]]
480 479 name = "jobserver"
481 480 version = "0.1.21"
482 481 source = "registry+https://github.com/rust-lang/crates.io-index"
483 482 checksum = "5c71313ebb9439f74b00d9d2dcec36440beaf57a6aa0623068441dd7cd81a7f2"
484 483 dependencies = [
485 484 "libc",
486 485 ]
487 486
488 487 [[package]]
489 488 name = "lazy_static"
490 489 version = "1.4.0"
491 490 source = "registry+https://github.com/rust-lang/crates.io-index"
492 491 checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646"
493 492
494 493 [[package]]
495 494 name = "libc"
496 495 version = "0.2.81"
497 496 source = "registry+https://github.com/rust-lang/crates.io-index"
498 497 checksum = "1482821306169ec4d07f6aca392a4681f66c75c9918aa49641a2595db64053cb"
499 498
500 499 [[package]]
501 500 name = "libm"
502 501 version = "0.2.1"
503 502 source = "registry+https://github.com/rust-lang/crates.io-index"
504 503 checksum = "c7d73b3f436185384286bd8098d17ec07c9a7d2388a6599f824d8502b529702a"
505 504
506 505 [[package]]
507 506 name = "libz-sys"
508 507 version = "1.1.2"
509 508 source = "registry+https://github.com/rust-lang/crates.io-index"
510 509 checksum = "602113192b08db8f38796c4e85c39e960c145965140e918018bcde1952429655"
511 510 dependencies = [
512 511 "cc",
513 512 "pkg-config",
514 513 "vcpkg",
515 514 ]
516 515
517 516 [[package]]
518 517 name = "log"
519 518 version = "0.4.11"
520 519 source = "registry+https://github.com/rust-lang/crates.io-index"
521 520 checksum = "4fabed175da42fed1fa0746b0ea71f412aa9d35e76e95e59b192c64b9dc2bf8b"
522 521 dependencies = [
523 522 "cfg-if 0.1.10",
524 523 ]
525 524
526 525 [[package]]
527 526 name = "maybe-uninit"
528 527 version = "2.0.0"
529 528 source = "registry+https://github.com/rust-lang/crates.io-index"
530 529 checksum = "60302e4db3a61da70c0cb7991976248362f30319e88850c487b9b95bbf059e00"
531 530
532 531 [[package]]
533 532 name = "memchr"
534 533 version = "2.3.4"
535 534 source = "registry+https://github.com/rust-lang/crates.io-index"
536 535 checksum = "0ee1c47aaa256ecabcaea351eae4a9b01ef39ed810004e298d2511ed284b1525"
537 536
538 537 [[package]]
539 538 name = "memmap2"
540 539 version = "0.4.0"
541 540 source = "registry+https://github.com/rust-lang/crates.io-index"
542 541 checksum = "de5d3112c080d58ce560081baeaab7e1e864ca21795ddbf533d5b1842bb1ecf8"
543 542 dependencies = [
544 543 "libc",
545 544 "stable_deref_trait",
546 545 ]
547 546
548 547 [[package]]
549 548 name = "memoffset"
550 549 version = "0.6.1"
551 550 source = "registry+https://github.com/rust-lang/crates.io-index"
552 551 checksum = "157b4208e3059a8f9e78d559edc658e13df41410cb3ae03979c83130067fdd87"
553 552 dependencies = [
554 553 "autocfg",
555 554 ]
556 555
557 556 [[package]]
558 557 name = "micro-timer"
559 558 version = "0.3.1"
560 559 source = "registry+https://github.com/rust-lang/crates.io-index"
561 560 checksum = "2620153e1d903d26b72b89f0e9c48d8c4756cba941c185461dddc234980c298c"
562 561 dependencies = [
563 562 "micro-timer-macros",
564 563 "scopeguard",
565 564 ]
566 565
567 566 [[package]]
568 567 name = "micro-timer-macros"
569 568 version = "0.3.1"
570 569 source = "registry+https://github.com/rust-lang/crates.io-index"
571 570 checksum = "e28a3473e6abd6e9aab36aaeef32ad22ae0bd34e79f376643594c2b152ec1c5d"
572 571 dependencies = [
573 572 "proc-macro2",
574 573 "quote",
575 574 "scopeguard",
576 575 "syn",
577 576 ]
578 577
579 578 [[package]]
580 579 name = "miniz_oxide"
581 580 version = "0.4.3"
582 581 source = "registry+https://github.com/rust-lang/crates.io-index"
583 582 checksum = "0f2d26ec3309788e423cfbf68ad1800f061638098d76a83681af979dc4eda19d"
584 583 dependencies = [
585 584 "adler",
586 585 "autocfg",
587 586 ]
588 587
589 588 [[package]]
590 589 name = "num-integer"
591 590 version = "0.1.44"
592 591 source = "registry+https://github.com/rust-lang/crates.io-index"
593 592 checksum = "d2cc698a63b549a70bc047073d2949cce27cd1c7b0a4a862d08a8031bc2801db"
594 593 dependencies = [
595 594 "autocfg",
596 595 "num-traits",
597 596 ]
598 597
599 598 [[package]]
600 599 name = "num-traits"
601 600 version = "0.2.14"
602 601 source = "registry+https://github.com/rust-lang/crates.io-index"
603 602 checksum = "9a64b1ec5cda2586e284722486d802acf1f7dbdc623e2bfc57e65ca1cd099290"
604 603 dependencies = [
605 604 "autocfg",
606 605 "libm",
607 606 ]
608 607
609 608 [[package]]
610 609 name = "num_cpus"
611 610 version = "1.13.0"
612 611 source = "registry+https://github.com/rust-lang/crates.io-index"
613 612 checksum = "05499f3756671c15885fee9034446956fff3f243d6077b91e5767df161f766b3"
614 613 dependencies = [
615 614 "hermit-abi",
616 615 "libc",
617 616 ]
618 617
619 618 [[package]]
620 619 name = "opaque-debug"
621 620 version = "0.3.0"
622 621 source = "registry+https://github.com/rust-lang/crates.io-index"
623 622 checksum = "624a8340c38c1b80fd549087862da4ba43e08858af025b236e509b6649fc13d5"
624 623
625 624 [[package]]
626 625 name = "output_vt100"
627 626 version = "0.1.2"
628 627 source = "registry+https://github.com/rust-lang/crates.io-index"
629 628 checksum = "53cdc5b785b7a58c5aad8216b3dfa114df64b0b06ae6e1501cef91df2fbdf8f9"
630 629 dependencies = [
631 630 "winapi",
632 631 ]
633 632
634 633 [[package]]
635 634 name = "paste"
636 635 version = "1.0.5"
637 636 source = "registry+https://github.com/rust-lang/crates.io-index"
638 637 checksum = "acbf547ad0c65e31259204bd90935776d1c693cec2f4ff7abb7a1bbbd40dfe58"
639 638
640 639 [[package]]
641 640 name = "pkg-config"
642 641 version = "0.3.19"
643 642 source = "registry+https://github.com/rust-lang/crates.io-index"
644 643 checksum = "3831453b3449ceb48b6d9c7ad7c96d5ea673e9b470a1dc578c2ce6521230884c"
645 644
646 645 [[package]]
647 646 name = "ppv-lite86"
648 647 version = "0.2.10"
649 648 source = "registry+https://github.com/rust-lang/crates.io-index"
650 649 checksum = "ac74c624d6b2d21f425f752262f42188365d7b8ff1aff74c82e45136510a4857"
651 650
652 651 [[package]]
653 652 name = "pretty_assertions"
654 653 version = "0.6.1"
655 654 source = "registry+https://github.com/rust-lang/crates.io-index"
656 655 checksum = "3f81e1644e1b54f5a68959a29aa86cde704219254669da328ecfdf6a1f09d427"
657 656 dependencies = [
658 657 "ansi_term",
659 658 "ctor",
660 659 "difference",
661 660 "output_vt100",
662 661 ]
663 662
664 663 [[package]]
665 664 name = "proc-macro2"
666 665 version = "1.0.24"
667 666 source = "registry+https://github.com/rust-lang/crates.io-index"
668 667 checksum = "1e0704ee1a7e00d7bb417d0770ea303c1bccbabf0ef1667dae92b5967f5f8a71"
669 668 dependencies = [
670 669 "unicode-xid",
671 670 ]
672 671
673 672 [[package]]
674 name = "python27-sys"
675 version = "0.7.0"
676 source = "registry+https://github.com/rust-lang/crates.io-index"
677 checksum = "94670354e264300dde81a5864cbb6bfc9d56ac3dcf3a278c32cb52f816f4dfd1"
678 dependencies = [
679 "libc",
680 "regex",
681 ]
682
683 [[package]]
684 673 name = "python3-sys"
685 674 version = "0.7.0"
686 675 source = "registry+https://github.com/rust-lang/crates.io-index"
687 676 checksum = "b18b32e64c103d5045f44644d7ddddd65336f7a0521f6fde673240a9ecceb77e"
688 677 dependencies = [
689 678 "libc",
690 679 "regex",
691 680 ]
692 681
693 682 [[package]]
694 683 name = "quick-error"
695 684 version = "1.2.3"
696 685 source = "registry+https://github.com/rust-lang/crates.io-index"
697 686 checksum = "a1d01941d82fa2ab50be1e79e6714289dd7cde78eba4c074bc5a4374f650dfe0"
698 687
699 688 [[package]]
700 689 name = "quote"
701 690 version = "1.0.7"
702 691 source = "registry+https://github.com/rust-lang/crates.io-index"
703 692 checksum = "aa563d17ecb180e500da1cfd2b028310ac758de548efdd203e18f283af693f37"
704 693 dependencies = [
705 694 "proc-macro2",
706 695 ]
707 696
708 697 [[package]]
709 698 name = "rand"
710 699 version = "0.7.3"
711 700 source = "registry+https://github.com/rust-lang/crates.io-index"
712 701 checksum = "6a6b1679d49b24bbfe0c803429aa1874472f50d9b363131f0e89fc356b544d03"
713 702 dependencies = [
714 703 "getrandom 0.1.15",
715 704 "libc",
716 705 "rand_chacha 0.2.2",
717 706 "rand_core 0.5.1",
718 707 "rand_hc 0.2.0",
719 708 ]
720 709
721 710 [[package]]
722 711 name = "rand"
723 712 version = "0.8.4"
724 713 source = "registry+https://github.com/rust-lang/crates.io-index"
725 714 checksum = "2e7573632e6454cf6b99d7aac4ccca54be06da05aca2ef7423d22d27d4d4bcd8"
726 715 dependencies = [
727 716 "libc",
728 717 "rand_chacha 0.3.1",
729 718 "rand_core 0.6.3",
730 719 "rand_hc 0.3.1",
731 720 ]
732 721
733 722 [[package]]
734 723 name = "rand_chacha"
735 724 version = "0.2.2"
736 725 source = "registry+https://github.com/rust-lang/crates.io-index"
737 726 checksum = "f4c8ed856279c9737206bf725bf36935d8666ead7aa69b52be55af369d193402"
738 727 dependencies = [
739 728 "ppv-lite86",
740 729 "rand_core 0.5.1",
741 730 ]
742 731
743 732 [[package]]
744 733 name = "rand_chacha"
745 734 version = "0.3.1"
746 735 source = "registry+https://github.com/rust-lang/crates.io-index"
747 736 checksum = "e6c10a63a0fa32252be49d21e7709d4d4baf8d231c2dbce1eaa8141b9b127d88"
748 737 dependencies = [
749 738 "ppv-lite86",
750 739 "rand_core 0.6.3",
751 740 ]
752 741
753 742 [[package]]
754 743 name = "rand_core"
755 744 version = "0.5.1"
756 745 source = "registry+https://github.com/rust-lang/crates.io-index"
757 746 checksum = "90bde5296fc891b0cef12a6d03ddccc162ce7b2aff54160af9338f8d40df6d19"
758 747 dependencies = [
759 748 "getrandom 0.1.15",
760 749 ]
761 750
762 751 [[package]]
763 752 name = "rand_core"
764 753 version = "0.6.3"
765 754 source = "registry+https://github.com/rust-lang/crates.io-index"
766 755 checksum = "d34f1408f55294453790c48b2f1ebbb1c5b4b7563eb1f418bcfcfdbb06ebb4e7"
767 756 dependencies = [
768 757 "getrandom 0.2.4",
769 758 ]
770 759
771 760 [[package]]
772 761 name = "rand_distr"
773 762 version = "0.4.2"
774 763 source = "registry+https://github.com/rust-lang/crates.io-index"
775 764 checksum = "964d548f8e7d12e102ef183a0de7e98180c9f8729f555897a857b96e48122d2f"
776 765 dependencies = [
777 766 "num-traits",
778 767 "rand 0.8.4",
779 768 ]
780 769
781 770 [[package]]
782 771 name = "rand_hc"
783 772 version = "0.2.0"
784 773 source = "registry+https://github.com/rust-lang/crates.io-index"
785 774 checksum = "ca3129af7b92a17112d59ad498c6f81eaf463253766b90396d39ea7a39d6613c"
786 775 dependencies = [
787 776 "rand_core 0.5.1",
788 777 ]
789 778
790 779 [[package]]
791 780 name = "rand_hc"
792 781 version = "0.3.1"
793 782 source = "registry+https://github.com/rust-lang/crates.io-index"
794 783 checksum = "d51e9f596de227fda2ea6c84607f5558e196eeaf43c986b724ba4fb8fdf497e7"
795 784 dependencies = [
796 785 "rand_core 0.6.3",
797 786 ]
798 787
799 788 [[package]]
800 789 name = "rand_pcg"
801 790 version = "0.3.1"
802 791 source = "registry+https://github.com/rust-lang/crates.io-index"
803 792 checksum = "59cad018caf63deb318e5a4586d99a24424a364f40f1e5778c29aca23f4fc73e"
804 793 dependencies = [
805 794 "rand_core 0.6.3",
806 795 ]
807 796
808 797 [[package]]
809 798 name = "rand_xoshiro"
810 799 version = "0.4.0"
811 800 source = "registry+https://github.com/rust-lang/crates.io-index"
812 801 checksum = "a9fcdd2e881d02f1d9390ae47ad8e5696a9e4be7b547a1da2afbc61973217004"
813 802 dependencies = [
814 803 "rand_core 0.5.1",
815 804 ]
816 805
817 806 [[package]]
818 807 name = "rayon"
819 808 version = "1.5.0"
820 809 source = "registry+https://github.com/rust-lang/crates.io-index"
821 810 checksum = "8b0d8e0819fadc20c74ea8373106ead0600e3a67ef1fe8da56e39b9ae7275674"
822 811 dependencies = [
823 812 "autocfg",
824 813 "crossbeam-deque",
825 814 "either",
826 815 "rayon-core",
827 816 ]
828 817
829 818 [[package]]
830 819 name = "rayon-core"
831 820 version = "1.9.0"
832 821 source = "registry+https://github.com/rust-lang/crates.io-index"
833 822 checksum = "9ab346ac5921dc62ffa9f89b7a773907511cdfa5490c572ae9be1be33e8afa4a"
834 823 dependencies = [
835 824 "crossbeam-channel 0.5.0",
836 825 "crossbeam-deque",
837 826 "crossbeam-utils 0.8.1",
838 827 "lazy_static",
839 828 "num_cpus",
840 829 ]
841 830
842 831 [[package]]
843 832 name = "redox_syscall"
844 833 version = "0.1.57"
845 834 source = "registry+https://github.com/rust-lang/crates.io-index"
846 835 checksum = "41cc0f7e4d5d4544e8861606a285bb08d3e70712ccc7d2b84d7c0ccfaf4b05ce"
847 836
848 837 [[package]]
849 838 name = "regex"
850 839 version = "1.4.2"
851 840 source = "registry+https://github.com/rust-lang/crates.io-index"
852 841 checksum = "38cf2c13ed4745de91a5eb834e11c00bcc3709e773173b2ce4c56c9fbde04b9c"
853 842 dependencies = [
854 843 "aho-corasick",
855 844 "memchr",
856 845 "regex-syntax",
857 846 "thread_local",
858 847 ]
859 848
860 849 [[package]]
861 850 name = "regex-syntax"
862 851 version = "0.6.21"
863 852 source = "registry+https://github.com/rust-lang/crates.io-index"
864 853 checksum = "3b181ba2dcf07aaccad5448e8ead58db5b742cf85dfe035e2227f137a539a189"
865 854
866 855 [[package]]
867 856 name = "remove_dir_all"
868 857 version = "0.5.3"
869 858 source = "registry+https://github.com/rust-lang/crates.io-index"
870 859 checksum = "3acd125665422973a33ac9d3dd2df85edad0f4ae9b00dafb1a05e43a9f5ef8e7"
871 860 dependencies = [
872 861 "winapi",
873 862 ]
874 863
875 864 [[package]]
876 865 name = "rhg"
877 866 version = "0.1.0"
878 867 dependencies = [
879 868 "atty",
880 869 "chrono",
881 870 "clap",
882 871 "derive_more",
883 872 "env_logger",
884 873 "format-bytes",
885 874 "hg-core",
886 875 "home",
887 876 "lazy_static",
888 877 "log",
889 878 "micro-timer",
890 879 "regex",
891 880 "users",
892 881 ]
893 882
894 883 [[package]]
895 884 name = "same-file"
896 885 version = "1.0.6"
897 886 source = "registry+https://github.com/rust-lang/crates.io-index"
898 887 checksum = "93fc1dc3aaa9bfed95e02e6eadabb4baf7e3078b0bd1b4d7b6b0b68378900502"
899 888 dependencies = [
900 889 "winapi-util",
901 890 ]
902 891
903 892 [[package]]
904 893 name = "scopeguard"
905 894 version = "1.1.0"
906 895 source = "registry+https://github.com/rust-lang/crates.io-index"
907 896 checksum = "d29ab0c6d3fc0ee92fe66e2d99f700eab17a8d57d1c1d3b748380fb20baa78cd"
908 897
909 898 [[package]]
910 899 name = "sha-1"
911 900 version = "0.9.6"
912 901 source = "registry+https://github.com/rust-lang/crates.io-index"
913 902 checksum = "8c4cfa741c5832d0ef7fab46cabed29c2aae926db0b11bb2069edd8db5e64e16"
914 903 dependencies = [
915 904 "block-buffer",
916 905 "cfg-if 1.0.0",
917 906 "cpufeatures",
918 907 "digest",
919 908 "opaque-debug",
920 909 ]
921 910
922 911 [[package]]
923 912 name = "sized-chunks"
924 913 version = "0.6.2"
925 914 source = "registry+https://github.com/rust-lang/crates.io-index"
926 915 checksum = "1ec31ceca5644fa6d444cc77548b88b67f46db6f7c71683b0f9336e671830d2f"
927 916 dependencies = [
928 917 "bitmaps",
929 918 "typenum",
930 919 ]
931 920
932 921 [[package]]
933 922 name = "stable_deref_trait"
934 923 version = "1.2.0"
935 924 source = "registry+https://github.com/rust-lang/crates.io-index"
936 925 checksum = "a8f112729512f8e442d81f95a8a7ddf2b7c6b8a1a6f509a95864142b30cab2d3"
937 926
938 927 [[package]]
939 928 name = "static_assertions"
940 929 version = "1.1.0"
941 930 source = "registry+https://github.com/rust-lang/crates.io-index"
942 931 checksum = "a2eb9349b6444b326872e140eb1cf5e7c522154d69e7a0ffb0fb81c06b37543f"
943 932
944 933 [[package]]
945 934 name = "strsim"
946 935 version = "0.8.0"
947 936 source = "registry+https://github.com/rust-lang/crates.io-index"
948 937 checksum = "8ea5119cdb4c55b55d432abb513a0429384878c15dde60cc77b1c99de1a95a6a"
949 938
950 939 [[package]]
951 940 name = "syn"
952 941 version = "1.0.54"
953 942 source = "registry+https://github.com/rust-lang/crates.io-index"
954 943 checksum = "9a2af957a63d6bd42255c359c93d9bfdb97076bd3b820897ce55ffbfbf107f44"
955 944 dependencies = [
956 945 "proc-macro2",
957 946 "quote",
958 947 "unicode-xid",
959 948 ]
960 949
961 950 [[package]]
962 951 name = "tempfile"
963 952 version = "3.1.0"
964 953 source = "registry+https://github.com/rust-lang/crates.io-index"
965 954 checksum = "7a6e24d9338a0a5be79593e2fa15a648add6138caa803e2d5bc782c371732ca9"
966 955 dependencies = [
967 956 "cfg-if 0.1.10",
968 957 "libc",
969 958 "rand 0.7.3",
970 959 "redox_syscall",
971 960 "remove_dir_all",
972 961 "winapi",
973 962 ]
974 963
975 964 [[package]]
976 965 name = "termcolor"
977 966 version = "1.1.2"
978 967 source = "registry+https://github.com/rust-lang/crates.io-index"
979 968 checksum = "2dfed899f0eb03f32ee8c6a0aabdb8a7949659e3466561fc0adf54e26d88c5f4"
980 969 dependencies = [
981 970 "winapi-util",
982 971 ]
983 972
984 973 [[package]]
985 974 name = "textwrap"
986 975 version = "0.11.0"
987 976 source = "registry+https://github.com/rust-lang/crates.io-index"
988 977 checksum = "d326610f408c7a4eb6f51c37c330e496b08506c9457c9d34287ecc38809fb060"
989 978 dependencies = [
990 979 "unicode-width",
991 980 ]
992 981
993 982 [[package]]
994 983 name = "thread_local"
995 984 version = "1.0.1"
996 985 source = "registry+https://github.com/rust-lang/crates.io-index"
997 986 checksum = "d40c6d1b69745a6ec6fb1ca717914848da4b44ae29d9b3080cbee91d72a69b14"
998 987 dependencies = [
999 988 "lazy_static",
1000 989 ]
1001 990
1002 991 [[package]]
1003 992 name = "time"
1004 993 version = "0.1.44"
1005 994 source = "registry+https://github.com/rust-lang/crates.io-index"
1006 995 checksum = "6db9e6914ab8b1ae1c260a4ae7a49b6c5611b40328a735b21862567685e73255"
1007 996 dependencies = [
1008 997 "libc",
1009 998 "wasi 0.10.0+wasi-snapshot-preview1",
1010 999 "winapi",
1011 1000 ]
1012 1001
1013 1002 [[package]]
1014 1003 name = "twox-hash"
1015 1004 version = "1.6.0"
1016 1005 source = "registry+https://github.com/rust-lang/crates.io-index"
1017 1006 checksum = "04f8ab788026715fa63b31960869617cba39117e520eb415b0139543e325ab59"
1018 1007 dependencies = [
1019 1008 "cfg-if 0.1.10",
1020 1009 "rand 0.7.3",
1021 1010 "static_assertions",
1022 1011 ]
1023 1012
1024 1013 [[package]]
1025 1014 name = "typenum"
1026 1015 version = "1.12.0"
1027 1016 source = "registry+https://github.com/rust-lang/crates.io-index"
1028 1017 checksum = "373c8a200f9e67a0c95e62a4f52fbf80c23b4381c05a17845531982fa99e6b33"
1029 1018
1030 1019 [[package]]
1031 1020 name = "unicode-width"
1032 1021 version = "0.1.8"
1033 1022 source = "registry+https://github.com/rust-lang/crates.io-index"
1034 1023 checksum = "9337591893a19b88d8d87f2cec1e73fad5cdfd10e5a6f349f498ad6ea2ffb1e3"
1035 1024
1036 1025 [[package]]
1037 1026 name = "unicode-xid"
1038 1027 version = "0.2.1"
1039 1028 source = "registry+https://github.com/rust-lang/crates.io-index"
1040 1029 checksum = "f7fe0bb3479651439c9112f72b6c505038574c9fbb575ed1bf3b797fa39dd564"
1041 1030
1042 1031 [[package]]
1043 1032 name = "users"
1044 1033 version = "0.11.0"
1045 1034 source = "registry+https://github.com/rust-lang/crates.io-index"
1046 1035 checksum = "24cc0f6d6f267b73e5a2cadf007ba8f9bc39c6a6f9666f8cf25ea809a153b032"
1047 1036 dependencies = [
1048 1037 "libc",
1049 1038 "log",
1050 1039 ]
1051 1040
1052 1041 [[package]]
1053 1042 name = "vcpkg"
1054 1043 version = "0.2.11"
1055 1044 source = "registry+https://github.com/rust-lang/crates.io-index"
1056 1045 checksum = "b00bca6106a5e23f3eee943593759b7fcddb00554332e856d990c893966879fb"
1057 1046
1058 1047 [[package]]
1059 1048 name = "vcsgraph"
1060 1049 version = "0.2.0"
1061 1050 source = "registry+https://github.com/rust-lang/crates.io-index"
1062 1051 checksum = "4cb68c231e2575f7503a7c19213875f9d4ec2e84e963a56ce3de4b6bee351ef7"
1063 1052 dependencies = [
1064 1053 "hex",
1065 1054 "rand 0.7.3",
1066 1055 "sha-1",
1067 1056 ]
1068 1057
1069 1058 [[package]]
1070 1059 name = "vec_map"
1071 1060 version = "0.8.2"
1072 1061 source = "registry+https://github.com/rust-lang/crates.io-index"
1073 1062 checksum = "f1bddf1187be692e79c5ffeab891132dfb0f236ed36a43c7ed39f1165ee20191"
1074 1063
1075 1064 [[package]]
1076 1065 name = "version_check"
1077 1066 version = "0.9.2"
1078 1067 source = "registry+https://github.com/rust-lang/crates.io-index"
1079 1068 checksum = "b5a972e5669d67ba988ce3dc826706fb0a8b01471c088cb0b6110b805cc36aed"
1080 1069
1081 1070 [[package]]
1082 1071 name = "wasi"
1083 1072 version = "0.9.0+wasi-snapshot-preview1"
1084 1073 source = "registry+https://github.com/rust-lang/crates.io-index"
1085 1074 checksum = "cccddf32554fecc6acb585f82a32a72e28b48f8c4c1883ddfeeeaa96f7d8e519"
1086 1075
1087 1076 [[package]]
1088 1077 name = "wasi"
1089 1078 version = "0.10.0+wasi-snapshot-preview1"
1090 1079 source = "registry+https://github.com/rust-lang/crates.io-index"
1091 1080 checksum = "1a143597ca7c7793eff794def352d41792a93c481eb1042423ff7ff72ba2c31f"
1092 1081
1093 1082 [[package]]
1094 1083 name = "winapi"
1095 1084 version = "0.3.9"
1096 1085 source = "registry+https://github.com/rust-lang/crates.io-index"
1097 1086 checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419"
1098 1087 dependencies = [
1099 1088 "winapi-i686-pc-windows-gnu",
1100 1089 "winapi-x86_64-pc-windows-gnu",
1101 1090 ]
1102 1091
1103 1092 [[package]]
1104 1093 name = "winapi-i686-pc-windows-gnu"
1105 1094 version = "0.4.0"
1106 1095 source = "registry+https://github.com/rust-lang/crates.io-index"
1107 1096 checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6"
1108 1097
1109 1098 [[package]]
1110 1099 name = "winapi-util"
1111 1100 version = "0.1.5"
1112 1101 source = "registry+https://github.com/rust-lang/crates.io-index"
1113 1102 checksum = "70ec6ce85bb158151cae5e5c87f95a8e97d2c0c4b001223f33a334e3ce5de178"
1114 1103 dependencies = [
1115 1104 "winapi",
1116 1105 ]
1117 1106
1118 1107 [[package]]
1119 1108 name = "winapi-x86_64-pc-windows-gnu"
1120 1109 version = "0.4.0"
1121 1110 source = "registry+https://github.com/rust-lang/crates.io-index"
1122 1111 checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f"
1123 1112
1124 1113 [[package]]
1125 1114 name = "zstd"
1126 1115 version = "0.5.3+zstd.1.4.5"
1127 1116 source = "registry+https://github.com/rust-lang/crates.io-index"
1128 1117 checksum = "01b32eaf771efa709e8308605bbf9319bf485dc1503179ec0469b611937c0cd8"
1129 1118 dependencies = [
1130 1119 "zstd-safe",
1131 1120 ]
1132 1121
1133 1122 [[package]]
1134 1123 name = "zstd-safe"
1135 1124 version = "2.0.5+zstd.1.4.5"
1136 1125 source = "registry+https://github.com/rust-lang/crates.io-index"
1137 1126 checksum = "1cfb642e0d27f64729a639c52db457e0ae906e7bc6f5fe8f5c453230400f1055"
1138 1127 dependencies = [
1139 1128 "libc",
1140 1129 "zstd-sys",
1141 1130 ]
1142 1131
1143 1132 [[package]]
1144 1133 name = "zstd-sys"
1145 1134 version = "1.4.17+zstd.1.4.5"
1146 1135 source = "registry+https://github.com/rust-lang/crates.io-index"
1147 1136 checksum = "b89249644df056b522696b1bb9e7c18c87e8ffa3e2f0dc3b0155875d6498f01b"
1148 1137 dependencies = [
1149 1138 "cc",
1150 1139 "glob",
1151 1140 "itertools",
1152 1141 "libc",
1153 1142 ]
@@ -1,32 +1,29
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 = ["python3"]
13 13
14 14 # Features to build an extension module:
15 python27 = ["cpython/python27-sys", "cpython/extension-module-2-7"]
16 15 python3 = ["cpython/python3-sys", "cpython/extension-module"]
17 16
18 # Enable one of these features to build a test executable linked to libpython:
19 # e.g. cargo test --no-default-features --features python27-bin
20 python27-bin = ["cpython/python27-sys"]
17 # Enable this feature to build a test executable linked to libpython:
18 # e.g. cargo test --no-default-features --features python3-bin
21 19 python3-bin = ["cpython/python3-sys"]
22 20
23 21 [dependencies]
24 22 cpython = { version = "0.7.0", default-features = false }
25 23 crossbeam-channel = "0.4"
26 24 hg-core = { path = "../hg-core"}
27 25 libc = "0.2"
28 26 log = "0.4.8"
29 27 env_logger = "0.7.1"
30 28 stable_deref_trait = "1.2.0"
31 29 vcsgraph = "0.2.0"
32
@@ -1,70 +1,70
1 1 // lib.rs
2 2 //
3 3 // Copyright 2018 Georges Racinet <gracinet@anybox.fr>
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 //! Python bindings of `hg-core` objects using the `cpython` crate.
9 9 //! Once compiled, the resulting single shared library object can be placed in
10 10 //! the `mercurial` package directly as `rustext.so` or `rustext.dll`.
11 11 //! It holds several modules, so that from the point of view of Python,
12 12 //! it behaves as the `cext` package.
13 13 //!
14 14 //! Example:
15 15 //!
16 16 //! ```text
17 17 //! >>> from mercurial.rustext import ancestor
18 18 //! >>> ancestor.__doc__
19 19 //! 'Generic DAG ancestor algorithms - Rust implementation'
20 20 //! ```
21 21
22 22 /// This crate uses nested private macros, `extern crate` is still needed in
23 23 /// 2018 edition.
24 24 #[macro_use]
25 25 extern crate cpython;
26 26
27 27 pub mod ancestors;
28 28 mod cindex;
29 29 mod conversion;
30 30 #[macro_use]
31 31 pub mod ref_sharing;
32 32 pub mod copy_tracing;
33 33 pub mod dagops;
34 34 pub mod debug;
35 35 pub mod dirstate;
36 36 pub mod discovery;
37 37 pub mod exceptions;
38 38 mod pybytes_deref;
39 39 pub mod revlog;
40 40 pub mod utils;
41 41
42 42 py_module_initializer!(rustext, initrustext, PyInit_rustext, |py, m| {
43 43 m.add(
44 44 py,
45 45 "__doc__",
46 46 "Mercurial core concepts - Rust implementation",
47 47 )?;
48 48
49 49 let dotted_name: String = m.get(py, "__name__")?.extract(py)?;
50 50 m.add(py, "ancestor", ancestors::init_module(py, &dotted_name)?)?;
51 51 m.add(py, "dagop", dagops::init_module(py, &dotted_name)?)?;
52 52 m.add(py, "debug", debug::init_module(py, &dotted_name)?)?;
53 53 m.add(
54 54 py,
55 55 "copy_tracing",
56 56 copy_tracing::init_module(py, &dotted_name)?,
57 57 )?;
58 58 m.add(py, "discovery", discovery::init_module(py, &dotted_name)?)?;
59 59 m.add(py, "dirstate", dirstate::init_module(py, &dotted_name)?)?;
60 60 m.add(py, "revlog", revlog::init_module(py, &dotted_name)?)?;
61 61 m.add(py, "GraphError", py.get_type::<exceptions::GraphError>())?;
62 62 Ok(())
63 63 });
64 64
65 #[cfg(not(any(feature = "python27-bin", feature = "python3-bin")))]
65 #[cfg(not(feature = "python3-bin"))]
66 66 #[test]
67 67 #[ignore]
68 68 fn libpython_must_be_linked_to_run_tests() {
69 69 // stub function to tell that some tests wouldn't run
70 70 }
General Comments 0
You need to be logged in to leave comments. Login now