diff rust/hg-cpython/src/lib.rs @ 42179:13b64247f48f

rust-discovery: cpython bindings for the core logic As previously done with the ancestors submodule, testing for the bindings is provided from Python on a trivial case. Differential Revision: https://phab.mercurial-scm.org/D6232
author Georges Racinet <georges.racinet@octobus.net>
date Wed, 20 Feb 2019 09:04:39 +0100
parents 0c7b353ce100
children e240bec26626
line wrap: on
line diff
--- a/rust/hg-cpython/src/lib.rs	Tue Feb 19 23:42:31 2019 +0100
+++ b/rust/hg-cpython/src/lib.rs	Wed Feb 20 09:04:39 2019 +0100
@@ -28,6 +28,7 @@
 mod cindex;
 mod conversion;
 pub mod dagops;
+pub mod discovery;
 pub mod exceptions;
 
 py_module_initializer!(rustext, initrustext, PyInit_rustext, |py, m| {
@@ -40,6 +41,7 @@
     let dotted_name: String = m.get(py, "__name__")?.extract(py)?;
     m.add(py, "ancestor", ancestors::init_module(py, &dotted_name)?)?;
     m.add(py, "dagop", dagops::init_module(py, &dotted_name)?)?;
+    m.add(py, "discovery", discovery::init_module(py, &dotted_name)?)?;
     m.add(py, "GraphError", py.get_type::<exceptions::GraphError>())?;
     Ok(())
 });