changeset 48517:99a0b5422cf5

rust: add vcsgraph crate as dependency Preparing the integration of the vcsgraph library, which will provide generic algorithms for computations on version control graphs. Differential Revision: https://phab.mercurial-scm.org/D11945
author pacien <pacien.trangirard@pacien.net>
date Fri, 10 Dec 2021 15:22:24 +0100
parents 59524cb1cd73
children 8e8737a1fa7d
files rust/Cargo.lock rust/hg-cpython/Cargo.toml
diffstat 2 files changed, 20 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/rust/Cargo.lock	Tue Dec 07 23:01:20 2021 -0800
+++ b/rust/Cargo.lock	Fri Dec 10 15:22:24 2021 +0100
@@ -369,6 +369,12 @@
 ]
 
 [[package]]
+name = "hex"
+version = "0.4.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70"
+
+[[package]]
 name = "hg-core"
 version = "0.1.0"
 dependencies = [
@@ -413,6 +419,7 @@
  "libc",
  "log",
  "stable_deref_trait",
+ "vcsgraph",
 ]
 
 [[package]]
@@ -987,6 +994,17 @@
 checksum = "b00bca6106a5e23f3eee943593759b7fcddb00554332e856d990c893966879fb"
 
 [[package]]
+name = "vcsgraph"
+version = "0.2.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "4cb68c231e2575f7503a7c19213875f9d4ec2e84e963a56ce3de4b6bee351ef7"
+dependencies = [
+ "hex",
+ "rand",
+ "sha-1",
+]
+
+[[package]]
 name = "vec_map"
 version = "0.8.2"
 source = "registry+https://github.com/rust-lang/crates.io-index"
--- a/rust/hg-cpython/Cargo.toml	Tue Dec 07 23:01:20 2021 -0800
+++ b/rust/hg-cpython/Cargo.toml	Fri Dec 10 15:22:24 2021 +0100
@@ -28,3 +28,5 @@
 log = "0.4.8"
 env_logger = "0.7.1"
 stable_deref_trait = "1.2.0"
+vcsgraph = "0.2.0"
+