Skip to content
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

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

Open
alice-i-cecile opened this issue Dec 18, 2024 · 4 comments

Comments

@alice-i-cecile
Copy link

Crate name

leafwing-input-manager

Build failure link

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

Additional details

First reported in Leafwing-Studios/leafwing-input-manager#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
Copy link
Author

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

@syphar
Copy link
Member

syphar commented Dec 18, 2024

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?

@alice-i-cecile
Copy link
Author

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?

@syphar
Copy link
Member

syphar commented Dec 19, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants