A Tiny Prepared Rust Module

Synthetic inspection stages: Read, Activate, Compare.

Run an already compiled no-import module beside its displayed source.

A Tiny Prepared Rust Module

Run an already compiled no-import module beside its displayed source. This article belongs to the synthetic M7 After inspection collection; its numbers, experiments, and local materials are fictional.

Run a prepared artifact, not a compiler

The displayed Rust source explains a prepared no-import WASM fixture whose exported run function returns 42. The browser does not download a Rust compiler or build arbitrary Rust source.

<CodePlayground language="rust" wasmMediaId="eed52faa-0030-423b-a426-077a52f2b5dd" wasmVersion={1} displaySource="#[no_mangle]\npub extern "C" fn run() -> i32 { 42 }\n// Explanatory equivalent of the prepared fixture; no browser compilation." />

pub extern "C" fn run() -> i32 { 42 }
SurfaceExpected observation
Displayed sourceExplanatory Rust
Activated moduleInteger 42
StopActive surface removed

Continue inspecting

Plotting a Synthetic Signal offers another combination. Browse all showcase posts.