A production build keeps the simulator out of its dependency tree:
[dependencies]
moonpool = { version = "0.8", default-features = false, features = ["tokio"] }
[dev-dependencies]
moonpool = "0.8"Published
- moonpoolcrates.io
Facade: features
sim,tokio,hyper,prometheus,rpc,rpc-derive,rpc-tls,rpc-tls-pkiStart here. Use the default features in dev-dependencies, and
default-features = false, features = ["tokio"]in the library that you ship. - moonpool-corecrates.io
Provider traits,
TokioProviders, storage and metrics typesA library that takes the provider traits and must not pull in the simulator.
- moonpool-simcrates.io
Simulator, runner, chaos, assertion macros
You run simulations without the facade, or you build for wasm32 with
default-features = false. - moonpool-buggifycrates.io
buggify!,hint!,cpu_charge; zero dependenciesShipped code that names fault sites with
hint!andbuggify!, with zero dependencies. - moonpool-assertionscrates.io
Assertion accounting; zero dependencies, wasm-clean
Shipped code that counts
sometimesandalwaysfacts, with zero dependencies. - moonpool-tlacrates.io
Check a run's trace against a TLA+ spec with TLC, after the run or live in chunks; zero dependencies
Checking a run's trace against a TLA+ spec with TLC, from a simulation or a sans-I/O test.
- moonpool-explorercrates.io
Frontier exploration with forked workers (Linux, macOS)
Rarely directly:
moonpool-simuses it through its defaultexplorationfeature. - moonpool-hypercrates.io
hyper 1.x, tonic and axum over the providers
HTTP/2, tonic or axum on the providers. The facade feature
hypergives the same code. - moonpool-prometheuscrates.io
Prometheus registry in the simulation report
You want your Prometheus metrics in the simulation report. Facade feature
prometheus. - moonpool-rpccrates.io
Typed dynamic-endpoint RPC
Typed calls between processes over the network provider. Facade feature
rpc. - moonpool-rpc-derivecrates.io
#[service]interface generationThrough
moonpool-rpcwith itsderivefeature, for the#[service]attribute. - moonpool-journalcrates.io
CLSTORE journal: crash vs. corruption
A node needs a durable log that tells a crash from a corruption.
- moonpool-walkcrates.io
Seeded random walk over sans-I/O state machines; no simulator
A sans-I/O protocol core that you test with seeded schedules, with no simulator. A dev-dependency.
In the repository only
- moonpool-rpc-simnot published
RPC simulation campaigns and oracles
Not published. Read it as an example of simulation campaigns and oracles.
- moonpool-sim-examplesnot published
Example simulations (maze, dungeon, axum, tonic, journal)
Not published. Copy from it: maze, dungeon, axum, tonic and journal simulations.
- moonpool-wasm-demonot published
Website run engine (wasm)
Not published. The engine of the live runs of this site: a replicated register, compiled to wasm. Copy it to put your own simulation in a browser.
- moonpool-calibratenot published
Latency calibration tool
Not published. Measures the latency of a real disk and network for the simulator.
- xtasknot published
Simulation binary runner
Not published.
cargo xtask sim runbuilds and runs the simulation binaries.
The Crate Map of the Guide shows the dependency graph and the public items of each crate.