8 releases (4 breaking)

new 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

#265 in Science

Download history 133/week @ 2024-01-01 83/week @ 2024-01-08 299/week @ 2024-01-15 138/week @ 2024-01-22 91/week @ 2024-01-29 11/week @ 2024-02-19 91/week @ 2024-02-26 1/week @ 2024-03-11 2369/week @ 2024-04-01 853/week @ 2024-04-08 816/week @ 2024-04-15

4,038 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
~135K SLoC