rust/hg-direct-ffi/src/lib.rs
author Pulkit Goyal <pulkit@yandex-team.ru>
Wed, 10 Apr 2019 03:10:53 +0530
changeset 42098 5753e5949b51
parent 40300 72b94f946e90
permissions -rw-r--r--
py3: add b'' prefixes to new doctests in match.py # skip-blame as just b'' prefixes Differential Revision: https://phab.mercurial-scm.org/D6221

// Copyright 2018 Georges Racinet <gracinet@anybox.fr>
//
// This software may be used and distributed according to the terms of the
// GNU General Public License version 2 or any later version.

//! Bindings for CPython extension code
//!
//! This exposes methods to build and use a `rustlazyancestors` iterator
//! from C code, using an index and its parents function that are passed
//! from the caller at instantiation.

extern crate hg;
extern crate libc;

mod ancestors;
pub use ancestors::{
    rustlazyancestors_contains, rustlazyancestors_drop,
    rustlazyancestors_init, rustlazyancestors_next,
};