Skip to content

Any way to override default cfg? #5421

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

Closed
Tracked by #16346
oxalica opened this issue Jul 17, 2020 · 1 comment · Fixed by #19243
Closed
Tracked by #16346

Any way to override default cfg? #5421

oxalica opened this issue Jul 17, 2020 · 1 comment · Fixed by #19243
Labels
A-config configuration C-enhancement Category: enhancement S-unactionable Issue requires feedback, design decisions or is blocked on other work

Comments

@oxalica
Copy link
Contributor

oxalica commented Jul 17, 2020

We now get cfg from rustc --print cfg, but is there any way to override them (in vscode extension)?

@oxalica oxalica changed the title custom cfg Any way to override default cfg? Jul 17, 2020
@matklad
Copy link
Member

matklad commented Jul 17, 2020

There's cargo.target option which will pass --target option to --print cfg. For fine-grained override, you'll have to use rust-project.json for the time being unfortuantely.

@flodiebold flodiebold added the S-unactionable Issue requires feedback, design decisions or is blocked on other work label Dec 21, 2020
@Veykril Veykril added the A-config configuration label Nov 11, 2022
@Veykril Veykril added the C-enhancement Category: enhancement label Feb 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-config configuration C-enhancement Category: enhancement S-unactionable Issue requires feedback, design decisions or is blocked on other work
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants