Repository navigation
Add a cargo-faster.toml with hot crates, budgets and layering rules - #9
Merged
Merged
Conversation
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.
Adds
cargo-faster.tomlfrom real measurements. Needs talaagent/cargo-faster#88 (config-file support, not on crates.io yet), so CI only gets a commented-outcargo faster checkstep for now.Measured
2026-11-18,
cargo faster check --timingsrun twice (shared 32-core dev box at ~2x load, cold,nix develop). I took the larger value from each pair:cargo check --workspace: 21.7s (second run: 3.6s, warmed by kache)Hot crates
codexwireandcodexwire-protocol, which are both workspace crates. Over the last 6 months they had 28 and 13 file edits.Accepts
None. None of the current findings are there by design.
Budgets
Each budget is the measured value × 1.25, rounded up.
cold_check_secs = 28edit_rebuild_secs = { codexwire = 2, codexwire-protocol = 7 }critical_path_max_crates = 2no_new_critical_crates = ["codexwire-protocol", "codexwire"]max_duplicate_versions = 0Layer rules
tala-*: a standalone public library.codexwire-protocolmust not depend oncodexwire,tokio*,async-*,futures*ormio. This follows CONTRIBUTING.md: keep the protocol crate free of process and async runtime dependencies.Also sets
env.nextest_profile = "ci", the same profile CI passes to nextest.Follow-ups (real findings, not accepted)
synis built in two versions (2.0.119 and 3.0.9) for the host/proc-macro side. Seecargo tree -d -e normal,build.debug = "line-tables-only"for dev.cargo faster checkexits 0 with this file.cargo fmt --all --checkpasses.