(root: Path, files: dict[str, str])
| 23 | |
| 24 | |
| 25 | def _write(root: Path, files: dict[str, str]) -> None: |
| 26 | for name, body in {"Cargo.toml": _CARGO, **files}.items(): |
| 27 | (root / name).parent.mkdir(parents=True, exist_ok=True) |
| 28 | (root / name).write_text(body, encoding="utf-8") |
| 29 | |
| 30 | |
| 31 | def _extract(root: Path, files: dict[str, str]) -> dict: |
no test coverage detected