(package: str, source: str)
| 18 | @pytest.fixture |
| 19 | def cargo_project(tmp_path: Path) -> Callable[[str, str], Path]: |
| 20 | def create(package: str, source: str) -> Path: |
| 21 | manifest: Final = tmp_path / "Cargo.toml" |
| 22 | manifest.write_text(f'[package]\nname = "{package}"\nversion = "0.1.0"\nedition = "2021"\n[workspace]\n') |
| 23 | (tmp_path / "src").mkdir() |
| 24 | (tmp_path / "src/lib.rs").write_text(source) |
| 25 | return manifest |
| 26 | |
| 27 | return create |
no outgoing calls
no test coverage detected