Skip to content
Discussion options

You must be logged in to vote

Thanks for the thorough report. Your reading of the source is right: a staticlib bypasses the cache before any learned incremental plan exists, and mbx sets CARGO_INCREMENTAL=0, so the crate got no private incremental state and recompiled from scratch on every edit. That wasn't intended.

#695 fixes it. A workspace library whose crate types include staticlib or dylib now gets learned incremental state from its first build and reuses it afterwards. It is still reported as an unsupported-crate-type bypass, because nothing about caching it changed. learned_incremental = false turns it off. Bypassed binaries and tests are unchanged.

I have not re-measured Wealthfolio. If you can run your loop …

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

jdx
Oct 12, 2026 — with coder-jdx
Maintainer

You must be logged in to vote
1 reply
@jay-tau
Comment options

Answer selected by jay-tau
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants