Mercurial > public > mercurial-scm > hg
diff rust/hg-cpython/src/lib.rs @ 42747:760a7851e9ba
rust-parsers: move parser bindings to their own file and Python module
This tidies up the Rust side while simplifying the Python side.
Differential Revision: https://phab.mercurial-scm.org/D6627
author | Rapha?l Gom?s <rgomes@octobus.net> |
---|---|
date | Wed, 10 Jul 2019 10:16:28 +0200 |
parents | 326fdce22fb2 |
children | 30320c7bf79f |
line wrap: on
line diff
--- a/rust/hg-cpython/src/lib.rs Mon Jul 08 18:01:39 2019 +0200 +++ b/rust/hg-cpython/src/lib.rs Wed Jul 10 10:16:28 2019 +0200 @@ -29,6 +29,7 @@ mod conversion; pub mod dagops; pub mod dirstate; +pub mod parsers; pub mod discovery; pub mod exceptions; pub mod filepatterns; @@ -50,6 +51,11 @@ "filepatterns", filepatterns::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>())?; m.add( py,