docs.rs icon indicating copy to clipboard operation
docs.rs copied to clipboard

leafwing-input-manager 0.16 fails to build: "The platform you're compiling for is not supported by winit"

Open alice-i-cecile opened this issue 1 year ago • 4 comments

Crate name

leafwing-input-manager

Build failure link

https://docs.rs/crate/leafwing-input-manager/0.16.0/builds

Additional details

First reported in https://github.com/Leafwing-Studios/leafwing-input-manager/issues/668.

This seems to be a winit / platform bug. I'm not sure how to resolve this: docs build correctly for me locally, and I'd prefer not to turn off winit-related features (used for examples) to get functional docs.

alice-i-cecile avatar Dec 18 '24 18:12 alice-i-cecile

Looks like #2120 reports the same problem. Should we set that flag for our crate too? It would be nice to fix this upstream.

alice-i-cecile avatar Dec 18 '24 18:12 alice-i-cecile

Should we set that flag for our crate too?

yes, good idea :)

It would be nice to fix this upstream.

could you elaborate? Which upstream?

syphar avatar Dec 18 '24 18:12 syphar

On docs.rs :) Is there a way to configure the local environment that the docs are building in to better match what happens when users run cargo doc locally?

alice-i-cecile avatar Dec 18 '24 18:12 alice-i-cecile

On docs.rs :)

Now that's a tricky one, and would perhaps even involve a cargo change, if even possible.

Is there a way to configure the local environment that the docs are building in to better match what happens when users run cargo doc locally?

I'm not sure if I understand what you are asking. I assume you want to build locally the same way as docs.rs does.

The simplest way that would catch many problems, but not all of them is using cargo docs-rs.

You can also run a "real" docs.rs environment following this documentation, but it's a little more complex then.

syphar avatar Dec 19 '24 05:12 syphar

@alice-i-cecile sorry for the delay, is this still an open issue?

syphar avatar May 24 '25 15:05 syphar

Thanks for the ping. I'm going to close this as "can't reproduce" but if it comes up again I'll reopen.

alice-i-cecile avatar May 24 '25 20:05 alice-i-cecile