19 releases

0.6.2 Apr 3, 2024
0.6.1 Jan 16, 2024
0.6.0 Nov 17, 2023
0.5.6 Jul 24, 2023
0.3.2 Nov 14, 2022

#244 in Simulation

Download history 6186/week @ 2024-01-28 33638/week @ 2024-02-04 33982/week @ 2024-02-11 35344/week @ 2024-02-18 43484/week @ 2024-02-25 45765/week @ 2024-03-03 33698/week @ 2024-03-10 35874/week @ 2024-03-17 40830/week @ 2024-03-24 51988/week @ 2024-03-31 53446/week @ 2024-04-07 55621/week @ 2024-04-14 53788/week @ 2024-04-21 55852/week @ 2024-04-28 52904/week @ 2024-05-05 68553/week @ 2024-05-12

231,512 downloads per month
Used in 5 crates (3 directly)

MIT license

140KB
3K SLoC

Turmoil

This is very experimental

Add hardship to your tests.

Turmoil is a framework for testing distributed systems. It provides deterministic execution by running multiple concurrent hosts within a single thread. It introduces "hardship" into the system via changes in the simulated network. The network can be controlled manually or with a seeded rng.

Crates.io Documentation Build Status Discord chat

Quickstart

Add this to your Cargo.toml.

[dev-dependencies]
turmoil = "0.6"

See crate documentation for simulation setup instructions.

Examples

License

This project is licensed under the MIT license.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in turmoil by you, shall be licensed as MIT, without any additional terms or conditions.

Dependencies

~10–18MB
~224K SLoC