code-native
Helper crate for writing native modules (in Rust) for the Code programming
language — a .so/.wasm extension
mechanism that lets you implement particle handlers, exported variables, and
type declarations in Rust instead of .code source.
code-native eliminates the C-ABI boilerplate: it provides CodeValue
builders/readers and the code_module! macro, which generates the required
#[no_mangle] entry points (code_module_abi_version, code_module_init).
Quick start
use *;
unsafe extern "C"
code_module!
Compile as a cdylib and link it from .code source — see the native
module linking docs
in the main repo for the full ABI contract and the .wasm variant.
License
MIT — see LICENSE.