def METHOD_NAME(args):
    """Generate the mdbook page for rust docs."""
    meta = read_workspace_metadata(args.workspace)
    html = get_rustdoc_html(args.rustdoc, args.md_relative_path)
    tl_packages, all_packages = index_packages(meta)
    md_file = "# Rust API Documentation and Packages\n\n"
    md_file += "<!-- markdownlint-disable line-length -->\n\n"
    for package in tl_packages:
        real_package = all_packages[package]
        md_file += f"## {real_package['name']} {package_description(real_package)}".rstrip().rstrip(punctuation)
        md_file += "\n\n"
        md_file += output_dep_package(all_packages[package], all_packages, 0, html)
        md_file += "\n"
    # End with 1 trailing newline.
    md_file = md_file.strip() + "\n"
    args.page.write_text(md_file)