-
Notifications
You must be signed in to change notification settings - Fork 198
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
linux target does not appear in docs.rs even targets
in metadata is set
#1556
Comments
x86_64-unknown-linux-gnu
target does not appear in docs.rstargets
in metadata is set
Unfortunately build logs for non-default targets are not currently recorded (#787). I've checked the logs on the server and it did build the docs for |
Yes, this is wrong: docs.rs/src/docbuilder/rustwide_builder.rs Lines 659 to 662 in 78e2992
We only want to treat the host target as the |
No, that breaks proc-macros. See #422.
Can you explain this? Why would we pass |
Then we can keep that workaround specifically for proc-macros (I assume that all targets except the host fail with proc-macros?).
When we are building for the default-platform we want the docs to be in When we are building for a non-default platform we want the docs to be in Both of these codepaths already handle |
They would compile fine except cargo neglects to pass them RUSTDOCFLAGS: rust-lang/cargo#7677
I see. But we'll have to do that for proc-macros anyway, right? Does it make sense to set a non-host target for proc-macros? |
Err well I guess cross compiling proc-macros is already broken so it doesn't hurt to break them a little more. |
@Nemo157 Could you trigger the rebuild from 0.3.0 to 0.3.3 version? I want to check if the problem is solved. |
Requeued those versions, and 0.3.3 at least appears to have linux docs available. |
Crate name
xingapi
Build failure link
https://docs.rs/crate/xingapi/0.3.3/builds/465678
Additional details
After I released 0.3.0, I noticed that doc for
x86_64-unknown-linux-gnu
target is missing in docs.rs. But I was able to build the documentation locally with that target. Anyway, I've released some new versions to fix these issues.0.3.1
ignore
attribute for markdown code blocks to fix doc tests in Linux0.3.2
ignore
attribute for markdown code blocks (now doc tests fail)0.3.3
None of these attempts to fix the problem have been successful.
targets
anddefault-target
in Cargo.toml already set. Could someone please tell me what I am doing wrong? I don't even know where and how to view the build failure log.The text was updated successfully, but these errors were encountered: