Comments (6)
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.
Some advice given on rust-lang/docs.rs#655
from rust_icu.
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.
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.
from rust_icu.
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)
- Fix the test test_get_tz_data_version in rust_icu_ucal HOT 1
- Add support for ICU 70.1 HOT 3
- Start using the stable rust toolchain instead of nightly HOT 1
- Feature for static linking build HOT 3
- Character set conversion support (`ucnv.h`) HOT 2
- Building on FreeBSD: icu-config vs. pkg-config HOT 2
- Problem with versioned functions (FreeBSD) HOT 10
- Add a `LICENSE` file to every crate in this project
- Update rust_icu to support ICU 71.1
- normalize_ustring hard-codes the output capacity to 200 HOT 5
- Support UCPTrie and UMutableCPTrie HOT 5
- Better support for &[u16]
- Add a builder that tests `rust_icu` with the "future" release of ICU
- Add support for ICU 72.1
- Remove the mentions of now unsupported ICU versions
- Expose a few interesting symbols in rust_icu_sys HOT 1
- Does not build in OpenSuSe when versioned_function is used HOT 3
- SOLVED - Error building on macOS HOT 1
- Upgrade to ICU 73.1 HOT 1
- Update bindgen version HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rust_icu.