MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / generate_rust

Function generate_rust

cranelift/codegen/meta/src/lib.rs:32–35  ·  view source on GitHub ↗

Generates all the Rust source files used in Cranelift from the meta-language.

(isas: &[isa::Isa], out_dir: &std::path::Path)

Source from the content-addressed store, hash-verified

30
31/// Generates all the Rust source files used in Cranelift from the meta-language.
32pub fn generate_rust(isas: &[isa::Isa], out_dir: &std::path::Path) -> Result<(), error::Error> {
33 let shared_defs = shared::define();
34 generate_rust_for_shared_defs(&shared_defs, isas, out_dir)
35}
36
37fn generate_rust_for_shared_defs(
38 shared_defs: &Definitions,

Callers 1

Calls 2

defineFunction · 0.50

Tested by

no test coverage detected