def METHOD_NAME(mod_file, dest):
    global current_indent
    global current_class
    global current_package
    assert mod_file.suffix == ".rs"
    start_prefix = "pub static mp_module_"
    comment_prefix = f"    {COMMENT_PREFIX}"
    in_module = False
    current_indent = 0
    current_class = None
    mod_desc = str(mod_file.relative_to(CORE_DIR / "embed"))
    for l in open(mod_file):
        if l.startswith(start_prefix):
            in_module = True
            current_package = l[len(start_prefix) : ].split(":")[0]
        elif l.startswith("}"):
            in_module = False
        if not in_module:
            continue
        if not l.startswith(comment_prefix):
            continue
        l = l[len(comment_prefix) :]
        store_to_file(dest, split_to_parts(l, mod_desc))