MCPcopy Index your code
hub / github.com/RustPython/RustPython / main

Function main

examples/generator.rs:44–50  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

42}
43
44fn main() -> ExitCode {
45 let builder = vm::Interpreter::builder(Default::default());
46 let defs = rustpython_stdlib::stdlib_module_defs(&builder.ctx);
47 let interp = builder.add_native_modules(&defs).build();
48 let result = py_main(&interp);
49 vm::common::os::exit_code(interp.run(|_vm| result))
50}

Callers

nothing calls this directly

Calls 6

stdlib_module_defsFunction · 0.85
exit_codeFunction · 0.85
add_native_modulesMethod · 0.80
py_mainFunction · 0.70
buildMethod · 0.45
runMethod · 0.45

Tested by

no test coverage detected