rust-lang / docs.rs

crates.io documentation generator
https://docs.rs
MIT License
973 stars 194 forks source link

Crate failed to build #2545

Open cBournhonesque opened 2 months ago

cBournhonesque commented 2 months ago

Crate name

lightyear

Build failure link

https://docs.rs/crate/lightyear/0.16.2/builds/1284564

Additional details

If I run locally

cargo rustdoc --open -p lightyear --features=metrics,webtransport,leafwing,websocket,steam,zstd,avian2d/2d,avian2d/f32,avian2d/parry-f32 -- --document-private-items -D warnings --cfg docsrc

the docs are generated correctly

syphar commented 2 months ago

I see you also asked on zulip, here my comment from there:

I'm not sure either. Compiling locally with cargo +nightly docs-rs works too, I'll need to run it locally in a docs-rs container to know more. Until then I just queued a rebuild. I also see the 0.15. builds succeed, what did change related to these dependencies?

cBournhonesque commented 2 months ago

I couldn't figure it out so I disabled the faulty dependency avian (https://docs.rs/avian2d/latest/avian2d/) and now it works!

syphar commented 2 months ago

thank you for the update!

I would still leave this issue open. My hunch is that the issue is somehow between the dependency resolver and offline mode, but I don't know much about the relation between both.