comparison rust/Cargo.lock @ 42327:e8f3740cc067

rust-filepatterns: add a Rust implementation of pattern-related utils This change introduces Rust implementations of two functions related to pattern handling, all located in `match.py`: - `_regex` - `readpatternfile` These utils are useful in the long-term effort to improve `hg status`'s performance using Rust. Experimental work done by Valentin Gatien-Baron shows very promising improvements, but is too different from the current Mercurial core code structure to be used "as-is". This is the first - albeit very small - step towards the code revamp needed down the line. Two dependencies were added: `regex` and `lazy_static`. Both of them will be useful for a majority of the Rust code that will be written, are well known and maintained either by the Rust core team, or by very frequent contributors. Differential Revision: https://phab.mercurial-scm.org/D6271
author Raphaël Gomès <rgomes@octobus.net>
date Wed, 24 Apr 2019 11:34:09 +0200
parents e240bec26626
children cc4db4478467
comparison
equal deleted inserted replaced
42326:5d4ec64a6fcb 42327:e8f3740cc067
48 [[package]] 48 [[package]]
49 name = "hg-core" 49 name = "hg-core"
50 version = "0.1.0" 50 version = "0.1.0"
51 dependencies = [ 51 dependencies = [
52 "byteorder 1.3.1 (registry+https://github.com/rust-lang/crates.io-index)", 52 "byteorder 1.3.1 (registry+https://github.com/rust-lang/crates.io-index)",
53 "lazy_static 1.3.0 (registry+https://github.com/rust-lang/crates.io-index)",
53 "memchr 2.2.0 (registry+https://github.com/rust-lang/crates.io-index)", 54 "memchr 2.2.0 (registry+https://github.com/rust-lang/crates.io-index)",
54 "rand 0.6.5 (registry+https://github.com/rust-lang/crates.io-index)", 55 "rand 0.6.5 (registry+https://github.com/rust-lang/crates.io-index)",
55 "rand_pcg 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", 56 "rand_pcg 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)",
57 "regex 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
56 ] 58 ]
57 59
58 [[package]] 60 [[package]]
59 name = "hg-cpython" 61 name = "hg-cpython"
60 version = "0.1.0" 62 version = "0.1.0"
74 "libc 0.2.45 (registry+https://github.com/rust-lang/crates.io-index)", 76 "libc 0.2.45 (registry+https://github.com/rust-lang/crates.io-index)",
75 ] 77 ]
76 78
77 [[package]] 79 [[package]]
78 name = "lazy_static" 80 name = "lazy_static"
79 version = "1.2.0" 81 version = "1.3.0"
80 source = "registry+https://github.com/rust-lang/crates.io-index" 82 source = "registry+https://github.com/rust-lang/crates.io-index"
81 83
82 [[package]] 84 [[package]]
83 name = "libc" 85 name = "libc"
84 version = "0.2.45" 86 version = "0.2.45"
260 [[package]] 262 [[package]]
261 name = "thread_local" 263 name = "thread_local"
262 version = "0.3.6" 264 version = "0.3.6"
263 source = "registry+https://github.com/rust-lang/crates.io-index" 265 source = "registry+https://github.com/rust-lang/crates.io-index"
264 dependencies = [ 266 dependencies = [
265 "lazy_static 1.2.0 (registry+https://github.com/rust-lang/crates.io-index)", 267 "lazy_static 1.3.0 (registry+https://github.com/rust-lang/crates.io-index)",
266 ] 268 ]
267 269
268 [[package]] 270 [[package]]
269 name = "ucd-util" 271 name = "ucd-util"
270 version = "0.1.3" 272 version = "0.1.3"
300 "checksum bitflags 1.0.4 (registry+https://github.com/rust-lang/crates.io-index)" = "228047a76f468627ca71776ecdebd732a3423081fcf5125585bcd7c49886ce12" 302 "checksum bitflags 1.0.4 (registry+https://github.com/rust-lang/crates.io-index)" = "228047a76f468627ca71776ecdebd732a3423081fcf5125585bcd7c49886ce12"
301 "checksum byteorder 1.3.1 (registry+https://github.com/rust-lang/crates.io-index)" = "a019b10a2a7cdeb292db131fc8113e57ea2a908f6e7894b0c3c671893b65dbeb" 303 "checksum byteorder 1.3.1 (registry+https://github.com/rust-lang/crates.io-index)" = "a019b10a2a7cdeb292db131fc8113e57ea2a908f6e7894b0c3c671893b65dbeb"
302 "checksum cloudabi 0.0.3 (registry+https://github.com/rust-lang/crates.io-index)" = "ddfc5b9aa5d4507acaf872de71051dfd0e309860e88966e1051e462a077aac4f" 304 "checksum cloudabi 0.0.3 (registry+https://github.com/rust-lang/crates.io-index)" = "ddfc5b9aa5d4507acaf872de71051dfd0e309860e88966e1051e462a077aac4f"
303 "checksum cpython 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)" = "b489034e723e7f5109fecd19b719e664f89ef925be785885252469e9822fa940" 305 "checksum cpython 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)" = "b489034e723e7f5109fecd19b719e664f89ef925be785885252469e9822fa940"
304 "checksum fuchsia-cprng 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)" = "81f7f8eb465745ea9b02e2704612a9946a59fa40572086c6fd49d6ddcf30bf31" 306 "checksum fuchsia-cprng 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)" = "81f7f8eb465745ea9b02e2704612a9946a59fa40572086c6fd49d6ddcf30bf31"
305 "checksum lazy_static 1.2.0 (registry+https://github.com/rust-lang/crates.io-index)" = "a374c89b9db55895453a74c1e38861d9deec0b01b405a82516e9d5de4820dea1" 307 "checksum lazy_static 1.3.0 (registry+https://github.com/rust-lang/crates.io-index)" = "bc5729f27f159ddd61f4df6228e827e86643d4d3e7c32183cb30a1c08f604a14"
306 "checksum libc 0.2.45 (registry+https://github.com/rust-lang/crates.io-index)" = "2d2857ec59fadc0773853c664d2d18e7198e83883e7060b63c924cb077bd5c74" 308 "checksum libc 0.2.45 (registry+https://github.com/rust-lang/crates.io-index)" = "2d2857ec59fadc0773853c664d2d18e7198e83883e7060b63c924cb077bd5c74"
307 "checksum memchr 2.2.0 (registry+https://github.com/rust-lang/crates.io-index)" = "2efc7bc57c883d4a4d6e3246905283d8dae951bb3bd32f49d6ef297f546e1c39" 309 "checksum memchr 2.2.0 (registry+https://github.com/rust-lang/crates.io-index)" = "2efc7bc57c883d4a4d6e3246905283d8dae951bb3bd32f49d6ef297f546e1c39"
308 "checksum num-traits 0.2.6 (registry+https://github.com/rust-lang/crates.io-index)" = "0b3a5d7cc97d6d30d8b9bc8fa19bf45349ffe46241e8816f50f62f6d6aaabee1" 310 "checksum num-traits 0.2.6 (registry+https://github.com/rust-lang/crates.io-index)" = "0b3a5d7cc97d6d30d8b9bc8fa19bf45349ffe46241e8816f50f62f6d6aaabee1"
309 "checksum python27-sys 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)" = "56114c37d4dca82526d74009df7782a28c871ac9d36b19d4cb9e67672258527e" 311 "checksum python27-sys 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)" = "56114c37d4dca82526d74009df7782a28c871ac9d36b19d4cb9e67672258527e"
310 "checksum python3-sys 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)" = "61e4aac43f833fd637e429506cb2ac9d7df672c4b68f2eaaa163649b7fdc0444" 312 "checksum python3-sys 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)" = "61e4aac43f833fd637e429506cb2ac9d7df672c4b68f2eaaa163649b7fdc0444"