optimize nix build cache hits & local compile time with cargo-hakari#3163
optimize nix build cache hits & local compile time with cargo-hakari#3163
cargo-hakari#3163Conversation
|
This PR is part of a stack of 4 bookmarks:
Created with jj-stack |
|
Claude finished @insipx's task —— View job PR Review - cargo-hakari IntegrationReview Date: 2026-02-11 20:12 UTC SummaryThis PR successfully integrates Key Findings✅ Strengths:
Potential Concerns
Security & Best Practices✅ No security concerns identified:
✅ Follows project conventions:
Performance Considerations✅ Expected benefits:
Test Coverage✅ CI adequately validates:
Recommendations
Final AssessmentApprove with minor suggestions. This is a well-executed optimization following established patterns. The auto-generated nature and crane/hakari best practices make this low-risk. The only consideration is preserving institutional knowledge about dependency management that may have been in the removed deny.toml comments. Todo List:
|
d006d9e to
5e6a570
Compare
cargo-hakari
Add
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #3163 +/- ##
==========================================
- Coverage 74.28% 74.25% -0.03%
==========================================
Files 448 448
Lines 55750 55750
==========================================
- Hits 41413 41398 -15
- Misses 14337 14352 +15 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
5e6a570 to
126ad37
Compare
Dismissing my prior approval and re-evaluating approvability for 126ad37
0dd6b7b to
a370386
Compare
a370386 to
19bb54f
Compare
Dismissing my prior approval and re-evaluating approvability for 19bb54f
19bb54f to
796f015
Compare
796f015 to
b9154cd
Compare
5fe65ca to
9064dc7
Compare
Dismissing my prior approval and re-evaluating approvability for b9154cd
b9154cd to
9f69071
Compare
c934c2f to
f678186
Compare
9f69071 to
fd26b7c
Compare
f678186 to
3eedafc
Compare
fd26b7c to
2d8a460
Compare
Dismissing my prior approval and re-evaluating approvability for 2d8a460
2d8a460 to
d01a6e0
Compare
3eedafc to
ed01731
Compare
d01a6e0 to
3debeee
Compare
Dismissing my prior approval and re-evaluating approvability for 3debeee
bab2023 to
ae2f637
Compare
Dismissing my prior approval and re-evaluating approvability for bab2023
ae2f637 to
9926a9a
Compare
9926a9a to
a07dd3c
Compare
Dismissing my prior approval and re-evaluating approvability for a07dd3c
a07dd3c to
24449cb
Compare
| ANDROID_NDK_ROOT = androidPaths.ndkHome; | ||
| NDK_HOME = androidPaths.ndkHome; | ||
| EMULATOR = "${androidEmulator}"; | ||
| LD_LIBRARY_PATH = lib.makeLibraryPath [ openssl zlib ]; |
There was a problem hiding this comment.
Would be helpful to know when this list of inputs would need to change.
There was a problem hiding this comment.
I was getting build errors in android, I think some buildscripts need the LD_LIBRARY_PATH to be set in order to work correctly. I've found its mostly an issue with the zstd/openssl dependencies
crane docs highly recommend integrating cargo-hakari to reduce cache misses. cargo hakari should also optimize local building and reduce re-builds by optimizing the dependency graph of the cargo workspace.
read about how hakari works here
workspace-hack is used on some other large projects as well, like
rustc
firefox
this PR follows the instructions in cargo-hakari docs and is completely auto-generated. it adds a CI workflow to verify the config. you can run hakari locally with
nix develop .# --command cargo hakari verifyornix develop .# --command cargo hakari generate