diff -r c01fac6749e5 -r dcf818267bc1 rust/hg-cpython/src/lib.rs --- a/rust/hg-cpython/src/lib.rs Thu Jan 10 10:23:22 2019 -0500 +++ b/rust/hg-cpython/src/lib.rs Sat Dec 22 11:38:03 2018 +0100 @@ -12,7 +12,8 @@ //! it behaves as the `cext` package. //! //! Example: -//! ``` +//! +//! ```text //! >>> from mercurial.rustext import ancestor //! >>> ancestor.__doc__ //! 'Generic DAG ancestor algorithms - Rust implementation' @@ -23,9 +24,9 @@ extern crate hg; extern crate libc; -mod ancestors; +pub mod ancestors; mod cindex; -mod exceptions; +pub mod exceptions; py_module_initializer!(rustext, initrustext, PyInit_rustext, |py, m| { m.add(