roam_inprocess/lib.rs
1//! In-process transport for roam — direct WASM ↔ JS message passing.
2//!
3//! Provides a [`Link`](roam_types::Link) implementation that communicates
4//! with TypeScript in the same browser tab via `js_sys::Function` callbacks
5//! and `futures_channel::mpsc` channels, with no network involved.
6//!
7//! This crate only provides types on `wasm32` targets.
8
9#[cfg(target_arch = "wasm32")]
10mod wasm;
11#[cfg(target_arch = "wasm32")]
12pub use wasm::*;