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

Function generate

cranelift/codegen/meta/src/gen_settings.rs:413–423  ·  view source on GitHub ↗
(
    settings: &SettingGroup,
    parent_group: ParentGroup,
    filename: &str,
    out_dir: &std::path::Path,
)

Source from the content-addressed store, hash-verified

411}
412
413pub(crate) fn generate(
414 settings: &SettingGroup,
415 parent_group: ParentGroup,
416 filename: &str,
417 out_dir: &std::path::Path,
418) -> Result<(), error::Error> {
419 let mut fmt = Formatter::new(Language::Rust);
420 gen_group(settings, parent_group, &mut fmt);
421 fmt.write(filename, out_dir)?;
422 Ok(())
423}

Callers

nothing calls this directly

Calls 4

gen_groupFunction · 0.85
OkFunction · 0.85
newFunction · 0.50
writeMethod · 0.45

Tested by

no test coverage detected