Function generate_rust_code

Source
pub fn generate_rust_code(m: &Manifest) -> String
Expand description

Renders the Rust guest module source for a manifest: WASM import declarations, PyO3 wrapper functions, and the register()/prewarm() entry points. Build::emit_rust_guest writes this to $OUT_DIR/ext_<name>.rs; unlike Build::generate, this function does not validate the manifest.