##// END OF EJS Templates
rust-dirstate: rust implementation of dirstatemap...
rust-dirstate: rust implementation of dirstatemap The `dirstatemap` is one of the last building blocks needed to get to a `dirstate.walk` Rust implementation. Disclaimer: This change is part of a big (10) series of patches, all of which started as one big changeset that took a long time to write. This `dirstatemap` implementation is a compromise in terms of complexity both for me and for the reviewers. I chose to submit this patch right now because while it is not perfect, it works and is simple enough (IMHO) to be reviewed. The Python implementation uses a lot of lazy propertycaches, breaks encapsulation and is used as an iterator in a lot of places, all of which dictated the somewhat unidiomatic patterns in this change. Like written in the comments, rewriting this struct to use the typestate pattern might be a good idea, but this is a good first step. Differential Revision: https://phab.mercurial-scm.org/D6632

File last commit:

r42965:388622cb default
r42980:565c143f default
Show More
Cargo.toml
17 lines | 354 B | text/plain | TOMLLexer
Georges Racinet
rust: pure Rust lazyancestors iterator...
r40307 [package]
name = "hg-core"
version = "0.1.0"
authors = ["Georges Racinet <gracinet@anybox.fr>"]
description = "Mercurial pure Rust core library, with no assumption on Python bindings (FFI)"
Raphaël Gomès
rust: switch hg-core and hg-cpython to rust 2018 edition...
r42828 edition = "2018"
Georges Racinet
rust: pure Rust lazyancestors iterator...
r40307
[lib]
name = "hg"
Georges Racinet
rust: translated random test of missingancestors...
r41841
Raphaël Gomès
rust-dirstate: add rust implementation of `parse_dirstate` and `pack_dirstate`...
r42488 [dependencies]
Raphaël Gomès
rust-filepatterns: add a Rust implementation of pattern-related utils...
r42514 byteorder = "1.3.1"
lazy_static = "1.3.0"
Augie Fackler
rust: sort dependencies entries in Cargo.toml...
r42518 memchr = "2.2.0"
Georges Racinet
rust-discovery: core implementation for take_quick_sample()...
r42965 rand = "> 0.6.4"
rand_pcg = "> 0.1.0"
Augie Fackler
rust: sort dependencies entries in Cargo.toml...
r42518 regex = "^1.1"