experiment: migrate clap to usage-rs - #36
Draft
Blankeos wants to merge 2 commits into
Draft
Conversation
--version ~7.1ms -> ~7-9ms (slightly worse) TUI first frame (best) ~102-104 -> 104ms (same) Idle CPU ~0% ~0%
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Deploying crabcode with
|
| Latest commit: |
f91a491
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://5ab00dae.crabcode.pages.dev |
| Branch Preview URL: | https://perf-cpu-optimizations-usage.crabcode.pages.dev |
Blankeos
force-pushed
the
perf/cpu-optimizations-usage-rs
branch
from
August 29, 2026 04:03
29bf54e to
7580be1
Compare
`crabcode completion --install` writes `_crabcode` and upserts a 3-line block that sources it after other tools call `compinit`. Registers aliases like `cc`. Does not call `compinit` or edit `$fpath`.
Blankeos
force-pushed
the
perf/cpu-optimizations-usage-rs
branch
from
August 29, 2026 04:52
2b0ddd7 to
f91a491
Compare
Blankeos
marked this pull request as draft
August 29, 2026 18:50
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.
Summary
Migrate CLI parsing from clap +
clap_completetousage-rs(v6,completionsfeature), following that guide.Nested
jobs/maintenance(landed onmainafter the original commit) are now usage subcommands too. Completions stay opt-in (completions+#[usage(completion)]); we still only print a script viacrabcode completion.Perf (release, clap
6d32b00vs this branch)Host
Carlos-MacBook-Pro.local· macOS 26.4.1 · Apple M3 Max (14 cores, 36 GB) · rustc 1.98.0 · hyperfine 1.20.0Verdict: noise.
--versionslightly faster,--helpslightly slower, TUI first frame unchanged. Startup/idle is dominated by the TUI, not argv.--version--helpDid not write
PERF.md.