Expand description
A deterministic simulator for distributed systems.
Features
rpc
: Enables RPC through network.logger
: Enables built-in logger.macros
: Enables#[madsim::main]
and#[madsim::test]
macros.
Modules
Collection types.
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 tasks executor.
Utilities for tracking time.
Structs
Config
madsim
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
and macros
test
macros
Marks async function to be executed by runtime, suitable to test environment.
Derive Macros
Request
rpc
and macros