Crate madsim[][src]

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

Asynchronous file system.

Asynchronous network endpoint and a controlled network simulator.

Deterministic random number generator.

Asynchronous tasks executor.

Utilities for tracking time.

Structs

Supervisor handle to the runtime.

Local host handle to the runtime.

The madsim runtime.

Attribute 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.

Marks async function to be executed by runtime, suitable to test environment.