Giter VIP home page Giter VIP logo

Comments (6)

filmil avatar filmil commented on May 17, 2024 1

Success! See here: https://docs.rs/rust_icu_sys/0.1.2/rust_icu_sys/

I have reasons to think that other crates will become viewable on docs.rs too.

from rust_icu.

filmil avatar filmil commented on May 17, 2024

Some advice given on rust-lang/docs.rs#655

from rust_icu.

filmil avatar filmil commented on May 17, 2024

Looks like I managed to make changes that will allow rust_icu to compile on docs.rs.
Instructions here: https://forge.rust-lang.org/docs-rs/add-dependencies.html

One potential issue, the compilation model requires a README.md file must be available, and not be a symlink.

Another, I'm seeing some flakiness in bindgen invocation, exemplified in errors like this, which sometimes happen:

2020/03/27 00:18:07 [INFO] rustwide::cmd: [stderr] /usr/include/x86_64-linux-gnu/gnu/stubs.h:7:11: fatal error: 'gnu/stubs-32.h' file not found

But, the upside, once the two changes land, we may be well positioned to have the docs compilation succeed.

from rust_icu.

jyn514 avatar jyn514 commented on May 17, 2024

2020/03/27 00:18:07 [INFO] rustwide::cmd: [stderr] /usr/include/x86_64-linux-gnu/gnu/stubs.h:7:11: fatal error: 'gnu/stubs-32.h' file not found

This looks like you're trying to cross-compile for x86-unknown-linux-gnu (docs.rs builds all tier 1 targets by default). You can either request crates-build-env to install gcc-multilib (or the clang equivalent) in the build environment, or you can request docs.rs to only build for one target by putting targets = ["x86_64-unknown-linux-gnu"] in your Cargo.toml. See https://blog.rust-lang.org/2020/03/15/docs-rs-opt-into-fewer-targets.html for more details on the second option.

from rust_icu.

filmil avatar filmil commented on May 17, 2024

from rust_icu.

jyn514 avatar jyn514 commented on May 17, 2024

Several crates have different documentation for different platforms, for example https://docs.rs/winapi/. In the past we've had multiple targets on by default, but we're considering making that opt-in in the future for exactly the reasons you've seen here: it sometimes doesn't work and in most cases the documentation is the same. However, we're keeping the targets on by default for now to avoid unnecessarily breaking builds.

from rust_icu.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.