Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove rust-analyzer.cargo.sysrootQueryMetadata config again #18788

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Veykril
Copy link
Member

@Veykril Veykril commented Dec 29, 2024

Closes #18590

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Dec 29, 2024
);
let mut sysroot =
Sysroot::new(project_json.sysroot.clone(), project_json.sysroot_src.clone());
sysroot.load_workspace(&SysrootSourceWorkspaceConfig::Stitched);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Notable behavior change is here, we only stitch the sourceroot workspace for rust-project.json as we cannot assume a cargo to be present here. Ultimately, rust-project.json should supply the stitched sysroot workspace.

@Veykril
Copy link
Member Author

Veykril commented Dec 29, 2024

Ideally the rust-project.json will actually list the sysroot workspace (that is, it provides a stitched one), so that will need some adjustments to the json format.

@Veykril
Copy link
Member Author

Veykril commented Dec 31, 2024

A thought for a follow up to this PR, we should be able to cache the fetched sysroot and re-use it between multiple workspaces.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Drop rust-analyzer.cargo.sysrootQueryMetadata and support for stitched sysroot workspace
2 participants