I was looking at cranelift-wasm https://docs.rs/cranelift-wasm/0.62.0/cranelift_wasm/fn.translate_module.html Are the docs outdated? I am not seeing an obvious way here to get a list ofcranelift_codegen::ir::function::Function.
@Maik Klein Looks incomplete, yes. ModuleEnvironment will get functions body via define_function_body and, then, it will be forwarded to https://docs.rs/cranelift-wasm/0.62.0/cranelift_wasm/struct.FuncTranslator.html
check wasmtime's environ crate as the example
Thanks that is indeed what I was looking for.
Last updated: Dec 06 2025 at 05:03 UTC