11 unstable releases (3 breaking)

new 0.4.0 Mar 30, 2023
0.4.0-alpha.3 Mar 13, 2023
0.4.0-alpha.2 Oct 28, 2022
0.3.1 Oct 27, 2022
0.1.0 May 27, 2022

#97 in Simulation

Download history 31/week @ 2022-12-08 6/week @ 2022-12-15 27/week @ 2022-12-22 16/week @ 2022-12-29 96/week @ 2023-01-05 191/week @ 2023-01-12 13/week @ 2023-01-19 114/week @ 2023-01-26 35/week @ 2023-02-02 16/week @ 2023-02-09 491/week @ 2023-02-16 1080/week @ 2023-02-23 401/week @ 2023-03-02 647/week @ 2023-03-09 1249/week @ 2023-03-16 1310/week @ 2023-03-23

3,632 downloads per month
Used in 2 crates (via demes-forward)

MIT license

230KB
5.5K SLoC

Rust 3.5K SLoC // 0.0% comments Python 2K SLoC // 0.1% comments Shell 36 SLoC // 0.2% comments

rust implementation of the demes specification.

Change log

See here.


lib.rs:

rust support for demes.

Introduction

This crate provides:

  • Support for reading YAML descriptions of demes models. See loads and load.
  • Support for building a demes model using rust code. See GraphBuilder.

The output of any of these operations is a fully-resolved Graph.

More information

  • See here for an overview of demes.

Technical details

  • YAML and GraphBuilder inputs support the Human Data Model (HDM) described in the demes specification
  • A [Graph] is fully-resolved according to the Machine Data Model (MDM) described in the specification.

Features

The following cargo features are available:

  • json: enables reading/writing a [Graph] in JSON format.

Dependencies

~2.8–4MB
~100K SLoC