Expand description
Host offline WebAssembly-to-safe-Rust substitute transpiler with exact V2
structural-checkpoint metering (V2CheckpointPlanner) parity.
Structs§
- Substitute
Bundle Input - Single compiled WebAssembly snapshot fed into
transpile_wasm_bundle_to_safe_rust. - Transpile
Wasm Options - Options controlling generated Rust module metadata and source hashing.
Functions§
- transpile_
wasm_ bundle_ to_ safe_ rust - Transpiles a bundle of uninstrumented canonical WebAssembly snapshots into
uniform
.ctbnodes-prefixed safe-Rust chunk files (<chunk_prefix>.generated.rs) plus a generatedregistry.generated.rsmanifest. - transpile_
wasm_ to_ safe_ rust - Transpiles an uninstrumented canonical WebAssembly binary into a standalone safe-Rust substitute module implementing exact V2 structural-checkpoint metering.
- transpiler_
fingerprint_ sha256 - Returns a deterministic SHA-256 fingerprint of the transpiler and V2 metering planner sources so offline substitute regeneration invalidates whenever codegen changes.
- validate_
wasm_ for_ substitute - Validates whether
wasm_bytescan be analyzed into a safe-Rust substitute module (supported imports, value types, opcodes, and"step"/"main"entry) without formatting standalone Rust source text.