windows-rs: Rust docs broken

Just leaving this issue here as a few people have asked. There are two separate issues.

The Windows crate docs are broken due to this rustc bug.

The generated documentation hasn’t been updated because cargo hangs trying to build windows-docs-rs. I seem to have hit some kind of limit, but its not clear what’s wrong. rustc allocates about 5 GB and then cargo hangs inside git_refdb_backend_fs. This happens reliably. Here’s a repro if you want to play along.

Running out of memory while the CPU idles is kind of sad. 😢 Here is stable/night/nightly-2021-03-16 running in parallel:

image

In all three cases, the hang happens here:

image

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 41 (6 by maintainers)

Most upvoted comments

building a custom rustc

I haven’t graduated to that level of Rust ninja yet…

Thanks for all the help everyone!

Yes, this produces the same hang. rustc stack looks much the same as the earlier rustdoc stack.

Great, that should be a lot easier to bisect. The next step is to try and figure out if this is a rustc regression or a windows-rs regression. Does this work on beta? Does it work on 0.3.1 with the latest nightly?

If it’s a rustc regression, you can use https://github.com/rust-lang/cargo-bisect-rustc to find out where it broke. Otherwise I’d try git bisect to see if you can narrow it down somehow.

@jyn514 I have added basic Linux build support (#619):

https://github.com/microsoft/windows-rs/runs/2143667658

This excludes tests (for obvious reasons) but it should at least build the windows crate. Hope that helps.

I still can’t build windows-rs on linux, so I can’t be much help unfortunately.

Fine! I’m going to get this project building on Linux. 😎