telltale-vm 2.0.0

Bytecode VM for choreographic session type protocols
Documentation
//! Runtime drivers.
//!
//! Drivers own target/runtime orchestration while semantic stepping stays in
//! the VM kernel path.

pub mod single_thread;

#[cfg(feature = "multi-thread")]
pub mod threaded;

pub use single_thread::NativeSingleThreadDriver;

#[cfg(feature = "multi-thread")]
pub use threaded::NativeThreadedDriver;

/// Cooperative driver for WebAssembly targets.
///
/// Uses the single-threaded driver since WASM lacks native threading support.
#[cfg(target_arch = "wasm32")]
pub type WasmCooperativeDriver = NativeSingleThreadDriver;