vscode-rust icon indicating copy to clipboard operation
vscode-rust copied to clipboard

Setting features

Open steve-scott opened this issue 4 years ago • 0 comments

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?

steve-scott avatar Jul 29 '21 18:07 steve-scott