Skip to content

Skip checking some workspace members #14186

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

Open
tertsdiepraam opened this issue Feb 21, 2023 · 0 comments
Open

Skip checking some workspace members #14186

tertsdiepraam opened this issue Feb 21, 2023 · 0 comments
Labels
C-feature Category: feature request

Comments

@tertsdiepraam
Copy link

Hi! At uutils/coreutils we have a workspace with many crates, but some of those crates are not available on all platforms. However, rust-analyzer checks all crates and keeps giving error messages for the crates that aren't supposed to work on the current platform.

Here's a minimal example, which I also put in a repository.

We have a workspace with 2 crates: foo and bar. The foo crate works on our current platform, but bar doesn't. Hence we want to prevent rust-analyzer checking the bar crate. In the repository, I've done this by making bar depend on the selinux-sys crate, which only compiles if you have the selinux headers installed.

What I'd like is some configuration feature to specify some crates in the workspace that should not be checked. It'd be great if I could specify this per platform or on features, but the simplest version is that at the very least contributors would be able to configure rust-analyzer themselves so that they don't get the unnecessary errors.

The issue that inspired this feature request is uutils/coreutils#4400.

@tertsdiepraam tertsdiepraam added the C-feature Category: feature request label Feb 21, 2023
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