cuttlefish_sdk/lib.rs
1//! Guest-side library for writing cuttlefish proc-blocks.
2//!
3//! Stub: the `Block` trait and the wasm export macro land here next.
4//!
5//! A block is a state machine that the host drives — it returns commands and is
6//! stepped, rather than calling the host and blocking. This crate exists to hide
7//! that inversion behind an ordinary-looking Rust trait, so block authors do not
8//! hand-write state transitions. See [`cuttlefish_abi`] for why control is
9//! inverted in the first place.
10
11#![forbid(unsafe_code)]
12#![warn(missing_docs)]