8 releases (4 breaking)

0.5.0 Apr 16, 2024
0.4.1 Sep 26, 2023
0.4.0 Mar 30, 2023
0.3.0 Oct 27, 2022
0.1.0 Aug 5, 2022

#189 in Biology

Download history 112/week @ 2024-11-15 346/week @ 2024-11-22 109/week @ 2024-11-29 89/week @ 2024-12-06 7/week @ 2024-12-13 4/week @ 2024-12-27 8/week @ 2025-02-21 546/week @ 2025-02-28

554 downloads per month

MIT license

150KB
3.5K SLoC

demes-forward-capi

This crate provides a C interface to demes-forward.

In general, you should prefer the other crate unless you are working in C/C++.

This crate generates:

  1. A header file
  2. A static C library
  3. A dynamic C library

Requirements

cbindgen generates the header file. We do not use a build script. Rather, we use cbindgen from the command line.

To install:

cargo install cbindgen

Integration with cmake.

See c_examples/ in the repository.

CHANGELOG

See here

Dependencies

~5–7MB
~130K SLoC