-
Notifications
You must be signed in to change notification settings - Fork 212
Building crates that work only on some platforms #141
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
Comments
This is a known limitation of docs.rs. Docs.rs is only using a Linux host machine right now. I can implement building on OSX if someone donates an OSX server. |
Huh? But I changed So this means that somehow building for macOS target does work, and docs.rs should do that even if the build for other targets fails. |
Ahh I see, I thought OSX targeted crates requires an OSX host machine, but looks like they are like winapi crates and rust-std for OSX is enough to build this type of crates. Yes, I agree docs.rs should try to build crates for all targets and decide default-target itself. This is a neat idea and thanks for suggestion. I'll see what I can do. |
Thanks, that sounds great! 👍 |
I've run into this as well. What would be the best way to implement this? |
Can I do anything to help get this implemented? I haven't looked too closely, but it looks like EditI skimmed over the source, and it looks like there's a 'main' build in the way Docs.rs is implemented, and right now that build is the one for the current platform. It looks like the two ways to address this issue would be to:
I think makes sense to implement (1) and then later implement (2). Sorry if I said anything obviously stupid. |
I'm actually hoping to go the other way and only build one target unless requested otherwise, see #532. Would setting |
Yes. I think that should work. |
Crates such as https://docs.rs/crate/core-foundation/0.4.1/builds fail to build on platforms other than macOS. In this case, it fails with
error: native frameworks are only available on macOS targets
, but the crate would build correctly on macOS targets ... docs.rs doesn't seem to even try to build on macOS, however, after this error.Could it be changed in such a way that docs.rs tries to build on all platforms and later only show the subset of platforms where it succeeded to build?
The text was updated successfully, but these errors were encountered: