diff --git a/src/templates/pyproject.toml.j2 b/src/templates/pyproject.toml.j2 index 5f051ef51..8b9335768 100644 --- a/src/templates/pyproject.toml.j2 +++ b/src/templates/pyproject.toml.j2 @@ -35,3 +35,13 @@ exclude = [ "**/*.pyo" ] {% endif -%} + +[tool.uv] +cache-keys = [ + { file = "pyproject.toml" }, + { file = "Cargo.toml" }, + { file = "Cargo.lock" }, + { file = "**/*.rs" }, + { env = "MATURIN_PEP517_ARGS" }, + { env = "RUSTFLAGS" } +]