-
Notifications
You must be signed in to change notification settings - Fork 506
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
Windows Only at root windows
module for Linux
#3155
Comments
As you pointed out, the
So I'm not sure what the problem is. If I build your example to target Windows it compiles just fine. If I build it to target Linux then I get the expected error:
|
Ah, I guess in For the testing pipeline, I see that it targets linux environment but uses the |
Yes, non-Windows support is limited to the |
Ok so it is intended that the If non-windows support is ok for |
Clearly scoping and limiting support for non-Windows builds makes it clearer what is supported vs what happens to work by accident and reduces the overall support burden. |
I agree with that sentiment wholeheartedly, what isn't clear to me is why the root Cargo.toml
main.rs
To support non-windows to split out these dependencies from the |
To your question: I think the expectation here is that you don't use any windows crates for non-Windows targets unless you're working with DirectWrite Core or maybe DirectX Shader Compiler. I don't believe anything else is in scope. |
Ah completely fair, then would it be fair to say that If the intention is to have the |
Summary
System: MacOS Sonoma 14.1.1
RustC:
rustc 1.79.0 (129f3b996 2024-06-10)
Version Upgrade 0.57.0 -> 0.58.0
See Manifest and Code Implementation.
Change Context
I believe the change was introduced in #3143 when the crate level attribute was added
#![cfg(windows)]
to the top of windows/src/lib.rsLinux Testing
I believe the reason it wasn't captured in the CI pipeline during testing was because the linux tests import the
windows_core
crate directly instead of through thewindows::core
re-export hereCrate manifest
Crate code
The text was updated successfully, but these errors were encountered: