feat: Add support for completing cargo update <TAB>#14552
feat: Add support for completing cargo update <TAB>#14552bors merged 1 commit intorust-lang:masterfrom
cargo update <TAB>#14552Conversation
|
r? @epage |
|
☔ The latest upstream changes (presumably #14535) made this pull request unmergeable. Please resolve the merge conflicts. |
704096e to
810acd6
Compare
810acd6 to
373dcc2
Compare
|
The completion speed of this feature is not very ideal. On my local machine, I can feel a slight lag. |
Looked at it using https://doc.crates.io/contrib/tests/profiling.html Note: this was done on a debug build, doing
|
|
We can always iterate on performance @bors r+ |
|
☀️ Test successful - checks-actions |
perf: Improve quality of completion performance traces ### What does this PR try to resolve? - `CompleteEnv::complete` calls `std::process::exit`, causing the traces not to be flushed - Its hard to see where overhead is coming from for completions without tracing it This was inspired by #14552 ### How should we test and review this PR? ### Additional information
May I ask where is the discussion about how to speed up resolve times? |
|
More performance discussions at |
Update cargo 19 commits in eaee77dc1584be45949b75e4c4c9a841605e3a4b..80d82ca22abbee5fb7b51fa1abeb1ae34e99e88a 2024-09-19 21:10:23 +0000 to 2024-09-27 17:56:01 +0000 - Update cc to 1.1.22 (rust-lang/cargo#14607) - feat: lockfile path implies --locked on cargo install (rust-lang/cargo#14556) - feat(toml): Add `autolib` (rust-lang/cargo#14591) - fix: correct error count for `cargo check --message-format json` (rust-lang/cargo#14598) - test: relax panic output assertion (rust-lang/cargo#14602) - feat(timings): support dark color scheme in HTML output (rust-lang/cargo#14588) - feat: add CARGO_MANIFEST_PATH env variable (rust-lang/cargo#14404) - fix(config): Don't double-warn about `$CARGO_HOME/config` (rust-lang/cargo#14579) - fix(cargo-rustc): give trailing flags higher precedence on nightly (rust-lang/cargo#14587) - feat: make lockfile v4 the default (rust-lang/cargo#14595) - perf: Improve quality of completion performance traces (rust-lang/cargo#14592) - test: Remove completion tests (rust-lang/cargo#14590) - feat: Add support for completing `cargo update <TAB>` (rust-lang/cargo#14552) - test: Migrate remaining with_stdout/with_stderr calls (rust-lang/cargo#14577) - fix(resolve): Improve multi-MSRV workspaces (rust-lang/cargo#14569) - chore: Bump MSRV to 1.81 (rust-lang/cargo#14585) - Add a `--dry-run` flag to the `install` command (rust-lang/cargo#14280) - fix(resolve): Don't list transitive, incompatible dependencies as available (rust-lang/cargo#14568) - feat(complete): Upgrade clap_complete (rust-lang/cargo#14573)

What does this PR try to resolve?
Tracking issue #14520
Add custom completer for
cargo update <TAB>