This crate provides rust bindings to tskit.
This package provides the following:
- Low-level bindings to the C API of both
tskitandkastore. We use bindgen to automatically generate the bindings. - Support for table collections, tree sequences, and tree iteration.
- An error handling system that maps
tskiterror codes torusterrors while preserving error messages.
The overview is:
tskitandkastoresource fromtskit 0.3.5are include insubprojects/- These two tools are compiled into the
rustpackage. - Then
bindgengenerates the bindings. - Finally, the entire rust package is generated.
The result is a rust library with all of these two C libraries statically compiled in.
Further, rust types and functions exist in the module name tskit::bindings, allowing unsafe access to the low-level API.
Help wanted!
git clone https://github.com/molpopgen/tskit_rust
cd tskit_rust
cargo build
cargo testThen, to look at the docs:
cargo doc --open
See here.