Add new option to force rust debug profile with editable install - #70
Merged
timkpaine merged 2 commits intoAug 4, 2026
Merged
Conversation
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 Report❌ Patch coverage is
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. 🚀 New features to boost your workflow:
|
Signed-off-by: Tim Paine <3105306+timkpaine@users.noreply.github.com>
Contributor
Author
|
@timkpaine thanks for the improvements, that's much better ! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
By default rust release profile is used to compile the artifacts and it can be changed using the
profileoption intool.hatch.build.hooks.hatch-rsortool.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-modeoption totrueeither intool.hatch.build.hooks.hatch-rsortool.hatch.build.hooks.hatch-rs.artifacts sections.Type of Change
Checklist
make lint)make test)