Expand description
A deterministic simulator for distributed systems.
§Features
rpc
: Enables built-in RPC framework.macros
: Enables#[madsim::main]
and#[madsim::test]
macros.
Modules§
- Buggify allows you to cooperate with the simulator to inject failures.
- Asynchronous file system.
- Asynchronous network endpoint and a controlled network simulator.
- plugin
madsim
Simulator plugin framework. - Utilities for random number generation.
- runtime
madsim
The madsim runtime. - Asynchronous signal handling.
- Asynchronous tasks executor.
- Utilities for tracking time.
Structs§
- Simulation configuration.
Attribute Macros§
- main
macros
Marks async function to be executed by the selected runtime. This macro helps set up aRuntime
without requiring the user to use Runtime directly. - service
rpc
andmacros
- test
macros
Marks async function to be executed by runtime, suitable to test environment.
Derive Macros§
- Request
rpc
andmacros