def METHOD_NAME(command: str, args: List[str]) -> BuildResult:
    paths = os.listdir(os.getcwd())
    manifest_found = "Cargo.toml" in paths
    rs_files = [p for p in paths if p.endswith(".rs")]
    if not manifest_found:
        if len(rs_files) != 1:
            return BuildResult.fail(
                "No `Cargo.toml` found. Either upload a whole crate (`Cargo.toml` + `src`) or a single .rs file.")
        # Synthesize a Cargo project
        with open("Cargo.toml", "w") as f:
            f.write(f"""