madsim-rs/madsim
Magical Deterministic Simulator for distributed systems in Rust. observed · 2026-08-28
Health v2 · maintenance only
62/100
- Activity 67
- Release rhythm 35
- Longevity 100
Flags: no_releases
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 1865
- days_rel: n/a
- days_push: 198
- n_releases_24m: 0
Adoption not part of the score
1150 stars · 71 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
MadSim is a Rust async runtime similar to tokio that enables deterministic simulation testing for distributed systems. It mocks I/O interfaces, eliminates uncertainty, and injects chaos and failures so bugs can be reproduced deterministically.
Use cases
- deterministically test distributed systems in Rust
- reproduce race conditions and hidden bugs reliably
- inject network and node failures into async Rust code
- simulate tokio, tonic, etcd, kafka, and S3 clients in tests
- chaos-test a database or streaming system before deployment
When to choose
- you build distributed systems in Rust and want FoundationDB-style deterministic simulation testing
- you need reproducible failure injection and chaos testing for async Rust code
- you want to swap tokio/tonic/etcd-client/rdkafka with drop-in simulated versions
When to avoid
- your code depends on crates without madsim-compatible replacements or patches
- you only need conventional integration or end-to-end testing without determinism
- you are not writing Rust async applications
Facets
library · maturity active
testing simulation mocking concurrency microservices testing developer-tools rust cross-platform deterministic-simulation chaos-testing async-runtime tokio-alternative fault-injection
2 sources
- readme: https://github.com/madsim-rs/madsim · fetched 2026-08-28 · 2ccd7a65505d
- registry_crates: https://crates.io/api/v1/crates/madsim · fetched 2026-08-29 · b1e69a7e9232
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| madsim-rs/madsim | main | 62 |
For agents
markdown · JSON · MCP: product_card(name="madsim-rs/madsim")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem