#net #nets #pns

sys pns

A simple and efficient library wrapper for simulating a minimal form of petri nets

29 releases (17 breaking)

Uses new Rust 2024

0.18.1 Mar 15, 2025
0.18.0 Sep 21, 2024
0.17.0 Sep 9, 2024
0.15.1 Jun 11, 2024
0.2.1 Jan 22, 2019

#134 in Simulation

Download history 3/week @ 2024-12-04 6/week @ 2024-12-11 4/week @ 2024-12-18 3/week @ 2025-02-05 39/week @ 2025-02-19 17/week @ 2025-02-26 120/week @ 2025-03-12 14/week @ 2025-03-19

153 downloads per month
Used in 6 crates

MIT/Apache

68KB
1.5K SLoC

C 1K SLoC // 0.0% comments Rust 668 SLoC // 0.0% comments

Petri Net Simulator for Rust

This is a rust binding to my petri net simulator written in C. It has almost direct mappings to the C API, but uses a few Rust features like methods and custom types.

The example should do exactly the same as in the C version.

For more information look at the documentation or have a look at the C API.

Also have a look at the petri net editor, which makes use of the whole API, and helps you understand, how it works.


lib.rs:

See the description *

Dependencies