[][src]Crate rusthg

Python bindings of hg-core objects using the cpython crate. Once compiled, the resulting single shared library object can be placed in the mercurial package directly as rustext.so or rustext.dll. It holds several modules, so that from the point of view of Python, it behaves as the cext package.

Example:

>>> from mercurial.rustext import ancestor
>>> ancestor.__doc__
'Generic DAG ancestor algorithms - Rust implementation'

Modules

ancestors

Bindings for the hg::ancestors module provided by the hg-core crate. From Python, this will be seen as rustext.ancestor and can be used as replacement for the the pure ancestor Python module.

dagops

Bindings for the hg::dagops module provided by the hg-core package.

exceptions

Bindings for Rust errors

Functions

initrustext