-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
cargo 0.73 build broken on windows #12562
Comments
So apparently with master cargo the issue doesn't occur, as seen in the second commit of my PR est31/cargo-udeps#194 . the third commit uses cargo 0.73 from git and reproduces the issue. The fourth commit applies a patch that just adds |
Thanks for the report! This was introduced by #12176, which claimed has tested against each crate. The short term plan here is adding back missing features. In long term we might adding tool like We might also have a deeper look at #11987, which might not worth pursuing in CI. Sorry for the inconvenience 😞. |
[stable-1.72.0] add missing `windows-sys` features back Stable backports: - <#12563> In order to make CI pass, the following PRs are also cherry-picked: - b4a26b0 from #12475 - c508cb6 from #12538 - 43c253e from #12351 - 689defd from #12500 --- Fixes <#12562> This won't affect Rust releases, i.e. no 1.72.1 will happen. We do this only for release `cargo` crate.
0.73.1 should be published now. I opened #12567 to try to figure out if there is some way to avoid this in the future. |
@ehuss @weihanglo thanks for the quick fix! |
Gives us the fix to rust-lang/cargo#12562
I updated cargo to 0.73 from crates.io in cargo-udeps (commit) and got the following build failure on ci:
If you look at the rustdoc for LockFileEx, it writes:
Compare this with the Cargo.toml of 0.73:
cargo/Cargo.toml
Lines 180 to 188 in 103a7ff
The former two are found while
Win32_System_IO
isn't present. I suppose this is the cause for the failure: in thecargo
repo this works fine because of dependency unification and another crate in the DAG enabling theWin32_System_IO
features. But if you usecargo
from crates.io, then it is not enabled, which is what I ran into.The fix is simple, just add
Win32_System_IO
to the list. Ideally this would also be published in a new release.I have worked around the issue by making cargo-udeps depend on windows-sys and enabling the feature (commit).
The text was updated successfully, but these errors were encountered: