-
Notifications
You must be signed in to change notification settings - Fork 9
fix: only emit rustc-check-cfg on Rust 1.77.0 or newer
#10
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
base: master
Are you sure you want to change the base?
fix: only emit rustc-check-cfg on Rust 1.77.0 or newer
#10
Conversation
|
I was on the fence about whether we should check the Rust version and asked about that in #7 (comment), but @ogoffart and @Urgau were of the opinion that it probably wasn't necessary to do the check. If we do the check, I think we can do it like in this comment #7 (comment), like the semver crate, instead of adding another dependency, since it's just a tiny function necessary to parse the version. If this is something that WGPU needs, then I think we should just do the check, but I'd like to give the opportunity for comments before merging. |
|
WGPU could just wait until its MSRV is high enough to avoid warnings, and then upgrade. There aren't other features from this crate that we consume, so 🤷🏻♂️ I wouldn't be devastated if this PR were simply closed. |
|
Pro this change:
Cons:
One could argue that the build time is probably negligible. But on the other hand, these warnings are only shown for some old version of rustc, they are not shown for dependencies (i.e, if someone use wgpu from crates.io, they won't see the warnings because of the caps-lint) and cargo warnings can't be turned into error on the CI. |
|
For now I'm leaning towards just leaving this be in favor of keeping this crate as 100% minimal and "guilt-free" as possible, but I don't have strong opinions on this change, so if anybody feels that this should definitely be done, feel free to comment and we'll get it fixed. |
|
Hi, I'm getting when using rustc 1.86.0 to compile a library crate. It's not that bad, because the fix is in the warning, but it still would be nice if it was avoided. |
No description provided.