rust/hg-direct-ffi/src/lib.rs
author Boris Feld <boris.feld@octobus.net>
Tue, 20 Nov 2018 10:10:25 +0000
changeset 40721 4369c00a8ee1
parent 40300 72b94f946e90
permissions -rw-r--r--
perf: move some of the perftags benchmark to the setup function Creating fresh objects and clearing the cache should not be part of the timing. before: ! wall 0.020851 comb 0.020000 user 0.020000 sys 0.000000 (median of 138) after: ! wall 0.018740 comb 0.020000 user 0.020000 sys 0.000000 (median of 141)

// 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,
};