Skip to content

Add new option to force rust debug profile with editable install - #70

Merged
timkpaine merged 2 commits into
python-project-templates:mainfrom
anlambert:debug-for-dev-mode
Aug 4, 2026
Merged

Add new option to force rust debug profile with editable install#70
timkpaine merged 2 commits into
python-project-templates:mainfrom
anlambert:debug-for-dev-mode

Conversation

@anlambert

@anlambert anlambert commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

Description

By default rust release profile is used to compile the artifacts and it can be changed using the profile option in tool.hatch.build.hooks.hatch-rs or tool.hatch.build.hooks.hatch-rs.artifacts sections.

When installing the Python project in development mode (aka editable installs) using the command pip install --editable <package>, it can be preferred to use the rust debug profile so the compilation time is faster.

Using rust debug profile in development mode can now be enforced by setting the debug-for-dev-mode option to true either in tool.hatch.build.hooks.hatch-rs or tool.hatch.build.hooks.hatch-rs.artifacts sections.

Type of Change

  • Bug fix
  • New feature
  • Documentation update
  • Refactor / code cleanup
  • CI / build configuration
  • Other (describe below)

Checklist

  • Linting passes (make lint)
  • Tests pass (make test)
  • New tests added for new functionality
  • Documentation updated (if applicable)
  • Changelog / version bump (if applicable)

By default rust release profile is used to compile the artifacts and it
can be changed using the profile option in tool.hatch.build.hooks.hatch-rs
or tool.hatch.build.hooks.hatch-rs.artifacts sections.

When installing the Python project in development mode (aka editable installs)
using the command "pip install --editable <package>", it can be preferred to
use the rust debug profile so the compilation time is faster.

Using rust debug profile in development mode can now be enforced by setting the
debug-for-dev-mode option to true either in tool.hatch.build.hooks.hatch-rs or
tool.hatch.build.hooks.hatch-rs.artifacts sections.
@codecov

codecov Bot commented Aug 4, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 98.11321% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 84.29%. Comparing base (d1dbbac) to head (42f9a43).

Files with missing lines Patch % Lines
hatch_rs/plugin.py 50.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #70      +/-   ##
==========================================
+ Coverage   81.70%   84.29%   +2.58%     
==========================================
  Files          10       11       +1     
  Lines        1443     1496      +53     
==========================================
+ Hits         1179     1261      +82     
+ Misses        264      235      -29     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Signed-off-by: Tim Paine <3105306+timkpaine@users.noreply.github.com>
@anlambert

Copy link
Copy Markdown
Contributor Author

@timkpaine thanks for the improvements, that's much better !

@timkpaine
timkpaine merged commit a0d86d8 into python-project-templates:main Aug 4, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants