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

Function generate

cranelift/codegen/meta/src/gen_types.rs:64–69  ·  view source on GitHub ↗

Generate the types file.

(filename: &str, out_dir: &std::path::Path)

Source from the content-addressed store, hash-verified

62
63/// Generate the types file.
64pub(crate) fn generate(filename: &str, out_dir: &std::path::Path) -> Result<(), error::Error> {
65 let mut fmt = Formatter::new(Language::Rust);
66 emit_types(&mut fmt);
67 fmt.write(filename, out_dir)?;
68 Ok(())
69}

Callers

nothing calls this directly

Calls 4

emit_typesFunction · 0.85
OkFunction · 0.85
newFunction · 0.50
writeMethod · 0.45

Tested by

no test coverage detected