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

doc.servo.org - Unable to access core_foundation, core_graphics and core_text #4602

Open
TitiAlone opened this issue Jan 10, 2015 · 5 comments
Open

Comments

@TitiAlone
Copy link

@TitiAlone TitiAlone commented Jan 10, 2015

These functions seems to be undefined in the doc.servo.org repo.

See here (core_foundation).
Same result for core_graphics and core_text.

@SimonSapin
Copy link
Member

@SimonSapin SimonSapin commented Jan 10, 2015

This is most likely because we’re generating the docs on Linux, and we are conditionally building these crates based on the platform. We should look into disabling these conditions for rustdoc.

@edunham
Copy link
Contributor

@edunham edunham commented Jul 17, 2017

Hey @steveklabnik, what would you recommend as the best practices for this situation?

It would be straightforward enough to build the docs on all platforms, then have either linux/function/stuffor function/linux/stuff directories.

It would be less straightforward unless someone has built it already to merge platform-specific sections into a single page for each function's docs.

Or is there some "build all the things" switch we can flip in rustdoc?

@steveklabnik
Copy link
Contributor

@steveklabnik steveklabnik commented Jul 17, 2017

There basically are none.

@onur might be able to share what they do with docs.rs, but that's the only person I know of who's doing this kind of thing.

New Rustdoc seeks to make this the default, but that's not coming for a while.

@edunham
Copy link
Contributor

@edunham edunham commented Jul 17, 2017

Also from our chat in #rust-docs, one example of this being done is https://doc.rust-lang.org/libc

@onur
Copy link

@onur onur commented Jul 17, 2017

Docs.rs is basically doing cargo doc --target={ARCH}. You need to install required rust-std component for the target architecture and if your library have a system dependency (openssl for example) you need to build this library for all target architectures.

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

Successfully merging a pull request may close this issue.

None yet
6 participants
You can’t perform that action at this time.