rust/Cargo.toml
author Georges Racinet <georges.racinet@octobus.net>
Fri, 17 May 2019 01:56:56 +0200
changeset 42737 388622cbc911
parent 40965 5532823e8c18
child 44466 79ac59d3f73d
permissions -rw-r--r--
rust-discovery: core implementation for take_quick_sample() This makes in particular `rand` no longer a testing dependency. We keep a seedable random generator on the `PartialDiscovery` object itself, to avoid lengthy initialization. In take_quick_sample() itself, we had to avoid keeping the reference to `self.undecided` to cope with the mutable reference introduced by the the call to `limit_sample`, but it's still manageable without resorting to inner mutability. Sampling being prone to be improved in the mid-term future, testing is minimal, amounting to checking which code path got executed. Differential Revision: https://phab.mercurial-scm.org/D6423
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
35569
964212780daf rust: implementation of `hg`
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
     1
[workspace]
40965
5532823e8c18 rust-cpython: start cpython crate bindings
Georges Racinet <gracinet@anybox.fr>
parents: 40964
diff changeset
     2
members = ["hg-core", "hg-direct-ffi", "hg-cpython"]
40964
98a0fbda8739 rust-cpython: exclude hgcli from workspace
Georges Racinet <gracinet@anybox.fr>
parents: 40272
diff changeset
     3
exclude = ["chg", "hgcli"]