diff rust/hg-cpython/src/lib.rs @ 48042:1194394510ba

rust: Remove the `rustext.parsers` module It only exported Rust implementations of the parse_dirstate and pack_dirtate functions, which are only used (anymore) when Rust is not enabled. fakedirstatewritetime.py was detecting the presence of `rustext.parsers` but what it really wants to know is whether the Rust implementation of `dirstatemap` is used. This changes it to detect `rustext.dirstate` instead. Differential Revision: https://phab.mercurial-scm.org/D11459
author Simon Sapin <simon.sapin@octobus.net>
date Mon, 20 Sep 2021 12:52:32 +0200
parents 8f031a274cd6
children 7b068abe4aa2
line wrap: on
line diff
--- a/rust/hg-cpython/src/lib.rs	Fri Sep 17 14:36:54 2021 +0200
+++ b/rust/hg-cpython/src/lib.rs	Mon Sep 20 12:52:32 2021 +0200
@@ -35,7 +35,6 @@
 pub mod dirstate;
 pub mod discovery;
 pub mod exceptions;
-pub mod parsers;
 mod pybytes_deref;
 pub mod revlog;
 pub mod utils;
@@ -59,11 +58,6 @@
     m.add(py, "discovery", discovery::init_module(py, &dotted_name)?)?;
     m.add(py, "dirstate", dirstate::init_module(py, &dotted_name)?)?;
     m.add(py, "revlog", revlog::init_module(py, &dotted_name)?)?;
-    m.add(
-        py,
-        "parsers",
-        parsers::init_parsers_module(py, &dotted_name)?,
-    )?;
     m.add(py, "GraphError", py.get_type::<exceptions::GraphError>())?;
     Ok(())
 });