sui_swarm/memory/mod.rs
1// Copyright (c) Mysten Labs, Inc.
2// SPDX-License-Identifier: Apache-2.0
3
4//! An `in-memory`, or rather `in-process`, backend for building and managing Sui Networks that all
5//! run inside the same process. Nodes are isolated from one another by each being run on their own
6//! separate thread within their own `tokio` runtime. This enables the ability to properly shut
7//! down a single node and ensure that all of its running tasks are also shut down, something that
8//! is extremely difficult or down right impossible to do if all the nodes are running on the same
9//! runtime.
10
11mod node;
12pub use node::{Node, RuntimeType};
13
14mod swarm;
15pub use swarm::{Swarm, SwarmBuilder};
16
17#[cfg(msim)]
18#[path = "./container-sim.rs"]
19mod container;
20
21#[cfg(not(msim))]
22#[path = "./container.rs"]
23mod container;