Targets · Rust · Native modules

Native modules

The hand-written, per-platform code behind NATIVE functions.

Contents

How a Program becomes Rust, in parts. Start with the introduction, then follow each part into the rendered output and the runtime it links against.

Hand-written Rust behind NATIVE

A NATIVE function needs a rust NATIVE body before it can be built for Rust; that hand-written body is dropped in where the function is called, wrapped so its inputs arrive as owned Rust values. As on JavaScript, the drivers are native code too, and the runtime (Reactive, Context) is itself a native crate the rest builds on.