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

Add named configuration overrides for vscode extension #15545

Open
kriswuollett opened this issue Sep 1, 2023 · 1 comment
Open

Add named configuration overrides for vscode extension #15545

kriswuollett opened this issue Sep 1, 2023 · 1 comment
Labels
C-feature Category: feature request

Comments

@kriswuollett
Copy link

Currently there a handful of Rust/Cargo issues surrounding feature selection in workspaces, e.g., rust-lang/cargo#4463. I think the missing possible key in the whole thing, ignoring ideas like changing the features model itself, is that there is no concept similar to a "Solution" like in an IDE like Visual Studio, e.g., a named configuration that binds target/package/features for easy switching. The parts are all here, but it requires manually swapping the analyzer settings in settings.json and the default-members in the workspace Cargo.yaml.

So what about adding functionality to the vscode extension like that in the Python one where different environments can be set up? For me the use case is reproducibly swapping between working on a static library package for embedding into mobile, and a Linux-based server binary, both of which have different feature flags. And those feature flags expand/propagate into the library dependencies in the workspace/monorepo which conditionally include code.

@kriswuollett kriswuollett added the C-feature Category: feature request label Sep 1, 2023
@recatek
Copy link

recatek commented Mar 10, 2024

This seems related to #15386 as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-feature Category: feature request
Projects
None yet
Development

No branches or pull requests

2 participants