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
- Buggify allows you to cooperate with the simulator to inject failures.
- fs
- Asynchronous file system.
- net
- Asynchronous network endpoint and a controlled network simulator.
- plugin
madsim
- Simulator plugin framework.
- rand
- Utilities for random number generation.
- runtime
madsim
- The madsim runtime.
- signal
- Asynchronous signal handling.
- task
- Asynchronous tasks executor.
- time
- Utilities for tracking time.
Structs§
- Config
- Simulation configuration.
Attribute Macros§
- main
macros
- Marks async function to be executed by the selected runtime. This macro
helps set up a
Runtime
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