Skip to content
This repository has been archived by the owner on Nov 18, 2022. It is now read-only.

Setting features #920

Open
steve-scott opened this issue Jul 29, 2021 · 0 comments
Open

Setting features #920

steve-scott opened this issue Jul 29, 2021 · 0 comments

Comments

@steve-scott
Copy link

steve-scott commented Jul 29, 2021

Our repo has multiple cargo workspaces. Each workspace has a different set of cargo features enabled. I don't know how to enable these features so that the VSCode editor correctly interprets the source code. For example, when we build in a particular workspace, we use the cargo command:

cargo build --features a,b

I don't know how to tell the IDE to enable features a and b. I have tried these settings:
Rust: All_features
Enable all Cargo features
and
Rust: Features (in settings.json)
"rust.features": [
"a",
"b"
]

Neither of these had any effect on the "squiggles" (errors) highlighted in the editor.

Is there a way to get the editor to correctly interpret the code based on the enabled features?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant