comparison rust/hg-cpython/Cargo.toml @ 45609:e604a3c03ab9

rust: introduce `dirstate-tree` cargo feature This feature gates (at compile-time) the use of the newly-added dirstate tree. The motivation for this is that the dirstate tree is currently *very* slow; replacing the current hashmap-based dirstate is not a viable solution in terms of performance... and why would you be using the Rust implementation if not for performance? The feature will also help reviewers better understand the differences that will slowly appear as the dirstate tree gets better. Differential Revision: https://phab.mercurial-scm.org/D9132
author Raphaël Gomès <rgomes@octobus.net>
date Wed, 30 Sep 2020 18:10:53 +0200
parents 2a68a5ec8dd0
children 47557ea79fc7
comparison
equal deleted inserted replaced
45608:423f17f94f35 45609:e604a3c03ab9
8 name='rusthg' 8 name='rusthg'
9 crate-type = ["cdylib"] 9 crate-type = ["cdylib"]
10 10
11 [features] 11 [features]
12 default = ["python27"] 12 default = ["python27"]
13 dirstate-tree = ["hg-core/dirstate-tree"]
13 14
14 # Features to build an extension module: 15 # Features to build an extension module:
15 python27 = ["cpython/python27-sys", "cpython/extension-module-2-7"] 16 python27 = ["cpython/python27-sys", "cpython/extension-module-2-7"]
16 python3 = ["cpython/python3-sys", "cpython/extension-module"] 17 python3 = ["cpython/python3-sys", "cpython/extension-module"]
17 18