Skip to content

Commit

Permalink
gen_rust_project: optimize aquery with many targets
Browse files Browse the repository at this point in the history
  • Loading branch information
TheLortex committed Oct 18, 2024
1 parent 5d8d989 commit cac7b36
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions tools/rust_analyzer/aquery.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,7 @@ pub fn get_crate_specs(
rules_rust_name: &str,
) -> anyhow::Result<BTreeSet<CrateSpec>> {
log::debug!("Get crate specs with targets: {:?}", targets);
let target_pattern = targets
.iter()
.map(|t| format!("deps({t})"))
.collect::<Vec<_>>()
.join("+");
let target_pattern = format!("deps({})", targets.join("+"));

let aquery_output = Command::new(bazel)
.current_dir(workspace)
Expand Down

0 comments on commit cac7b36

Please sign in to comment.