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

How to compile documentation for https://docs.rs/crate/rust_icu_sys #655

Closed
filmil opened this issue Mar 26, 2020 · 4 comments
Closed

How to compile documentation for https://docs.rs/crate/rust_icu_sys #655

filmil opened this issue Mar 26, 2020 · 4 comments
Labels
C-build-failure Category: This is a crate that failed to build

Comments

@filmil
Copy link

filmil commented Mar 26, 2020

Crate name: rust_icu_sys
Build failure link: https://docs.rs/crate/rust_icu_sys/0.1.1/builds/233436

Additional details:
Hi folks! I'd like to ask for some guidance regarding the crate rust_icu_sys that I maintain. docs.rs is not able to compile the crate, since compilation requires some additional libraries and tools, like the Unicode ICU library, as well as clang, bindgen, and others.

What would be the best way to bring those dependencies in so that documentation could be built on docs.rs? Thanks!

@filmil filmil added the C-build-failure Category: This is a crate that failed to build label Mar 26, 2020
@jyn514
Copy link
Member

jyn514 commented Mar 26, 2020

clang should already be installed in the build environment. I'm not sure what Unicode ICU is, but as long as Ubuntu packages it, you can add it to the environment by making a PR. Bindgen will be a little harder because it's not packaged. Have you considered using bindgen as a library instead of calling the binary? See https://docs.rs/bindgen for docs on how to do that.

@filmil
Copy link
Author

filmil commented Mar 26, 2020 via email

@filmil filmil changed the title How to compile documentation for https://docs.rs/crate/rust_icu_uloc/ How to compile documentation for https://docs.rs/crate/rust_icu_sys Mar 26, 2020
@filmil
Copy link
Author

filmil commented Mar 27, 2020

I think I made some progress as advised, closing this issue.

If you are curious, feel free to look at: google/rust_icu#41

@filmil filmil closed this as completed Mar 27, 2020
@jyn514
Copy link
Member

jyn514 commented Mar 27, 2020

I'm glad I could help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-build-failure Category: This is a crate that failed to build
Projects
None yet
Development

No branches or pull requests

2 participants