Crate madsim

Crate madsim 

Source
Expand description

A deterministic simulator for distributed systems.

§Features

  • rpc: Enables built-in RPC framework.
  • macros: Enables #[madsim::main] and #[madsim::test] macros.

Modules§

buggifymadsim
Buggify allows you to cooperate with the simulator to inject failures.
fsmadsim
Asynchronous file system.
netmadsim
Asynchronous network endpoint and a controlled network simulator.
pluginmadsim
Simulator plugin framework.
randmadsim
Utilities for random number generation.
runtimemadsim
The madsim runtime.
signalmadsim
Asynchronous signal handling.
taskmadsim
Asynchronous tasks executor.
timemadsim
Utilities for tracking time.

Structs§

Config
Simulation configuration.

Attribute Macros§

mainmacros
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.
servicerpc and macros
testmacros
Marks async function to be executed by runtime, suitable to test environment.

Derive Macros§

Requestrpc and macros