stator_jse 0.3.3

Stator JavaScript engine core — parser, bytecode compiler, Maglev JIT, interpreter, GC
Documentation
//! Chrome DevTools Protocol (CDP) inspector interface.
//!
//! This module contains [`cdp`], a minimal WebSocket server that implements
//! enough of the Chrome DevTools Protocol to support:
//!
//! - **Runtime**: `enable`, `evaluate`, `callFunctionOn`, `getProperties`
//! - **Debugger**: `enable`, `setPauseOnExceptions`, `setBreakpointByUrl`,
//!   `resume`
//! - **Console**: `enable`, `disable` (with buffered `messageAdded` events)
//! - **Profiler**: `enable`, `start`, `stop`
//! - **HeapProfiler**: `enable`, `takeHeapSnapshot`,
//!   `startTrackingHeapObjects`, `stopTrackingHeapObjects`
//! - **Network**: `enable`, `disable` (stubs for WebSocket-based communication)

/// Breakpoint-based debugger with step-into/over/out, pause-on-exceptions,
/// in-context evaluation, and source-map support.
pub mod debugger;

/// CDP WebSocket server, JSON-RPC message parsing, and domain routing.
pub mod cdp;
/// Console message buffer and CDP `Console` domain event forwarding.
pub mod console;
/// Heap snapshot builder: walks the JS value graph and emits a
/// CDP-compatible `HeapProfiler.HeapSnapshot` payload.  Also provides
/// allocation tracking via [`heap_snapshot::record_allocation`].
pub mod heap_snapshot;
/// Sampling CPU profiler: SIGPROF/setitimer-based sample collection and CDP
/// `Profiler.Profile` emission.
pub mod profiler;

/// Transport-agnostic in-process inspector handle and session container.
///
/// Embedders construct an [`api::InProcessInspector`] alongside their
/// context to drive the CDP dispatcher without standing up a WebSocket
/// server.  This is the engine-side type behind the FFI
/// `StatorInspector` handle.
pub mod api;