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

Support for separate .cargo/config.toml files in different projects in a workspace. #16765

Open
ryankopf opened this issue Mar 6, 2024 · 0 comments
Labels
C-feature Category: feature request

Comments

@ryankopf
Copy link

ryankopf commented Mar 6, 2024

The problem is if you have a workspace with subprojects that have different targets, they are not handled separately.

I created a reposity demonstrating the problem - https://github.com/ryankopf/testconfig

This is a problem because if you have a project, such as a video game, where you have two different targets (in my case one is wasm and one is linux/windows), Rust-Analyzer will die when it encounters a "compile_error!" macro in one of the projects, because the .cargo/config.toml file is not read for that project, and so Rust-Analyzer is not appropriately including the proper target in its checks.

This may be related to this issue - #13529 - but I think support for config.toml files is a separate issue that should be included.

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

1 participant