From 126e3c61eb56560b64c760187076770ad37eaeaa Mon Sep 17 00:00:00 2001 From: Tim Paine <3105306+timkpaine@users.noreply.github.com> Date: Fri, 13 Nov 2026 20:01:10 -0500 Subject: [PATCH] Require hatch-rs 0.6.1 in the rust templates hatch-rs 0.6.1 finds hashed Cargo outputs in the Cargo 1.100 build directory layout and takes its validation from hatch-native. The rust and rustjswasm templates required 0.1.4 to 0.5.0 depending on the options, or no minimum at all. Signed-off-by: Tim Paine <3105306+timkpaine@users.noreply.github.com> --- python/rust/pyproject.toml.jinja | 4 ++-- python/rustjswasm/pyproject.toml.jinja | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/python/rust/pyproject.toml.jinja b/python/rust/pyproject.toml.jinja index 1d5b0a7..6b182d3 100644 --- a/python/rust/pyproject.toml.jinja +++ b/python/rust/pyproject.toml.jinja @@ -1,7 +1,7 @@ [build-system] requires = [ "hatchling", - "hatch-rs>={% if add_c_abi %}0.5.0{% elif add_pyodide %}0.3.0{% else %}0.1.4{% endif %}", + "hatch-rs>=0.6.1", ] build-backend = "hatchling.build" @@ -46,7 +46,7 @@ develop = [ "check-dist", "cibuildwheel", "codespell", - "hatch-rs{% if add_c_abi %}>=0.5.0{% elif add_pyodide %}>=0.3.0{% endif %}", + "hatch-rs>=0.6.1", "hatchling", "mdformat", "mdformat-myst", diff --git a/python/rustjswasm/pyproject.toml.jinja b/python/rustjswasm/pyproject.toml.jinja index bea70d4..dc191a5 100644 --- a/python/rustjswasm/pyproject.toml.jinja +++ b/python/rustjswasm/pyproject.toml.jinja @@ -2,7 +2,7 @@ requires = [ "hatchling", "hatch-js", - "hatch-rs{% if add_pyodide %}>=0.3.0{% endif %}", + "hatch-rs>=0.6.1", ] build-backend = "hatchling.build" @@ -48,7 +48,7 @@ develop = [ "cibuildwheel", "codespell", "hatch-js", - "hatch-rs{% if add_pyodide %}>=0.3.0{% endif %}", + "hatch-rs>=0.6.1", "hatchling", "mdformat", "mdformat-myst",