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

Missing crates #23

Open
onur opened this Issue Aug 26, 2016 · 335 comments

Comments

Projects
None yet
@onur
Member

onur commented Aug 26, 2016

Docs.rs may have failed to build some crates for various reasons (missing dependency on build machine or bad configuration etc).

You can report them into this issue.

@azerupi

This comment has been minimized.

azerupi commented Aug 26, 2016

@onur

This comment has been minimized.

Member

onur commented Aug 26, 2016

There is a problem on crates that have url-0.5.9 dependency. If you check the build log cargo is returning error with: url-0.5.9/Cargo.toml:14:3 expected a newline after table definition. This is a warning when we use standalone cargo, but it is returning an Err as a library. I wasn't able to figure out how to bypass this.

@azerupi

This comment has been minimized.

azerupi commented Aug 26, 2016

Indeed, I have seen this warning in my own crates too before. I am not sure there is a way around it, except maybe using a fork of url-0.5.9 with the fix and using Cargo replace. I wouldn't consider that a solution though 😉

I have also seen crates depending on compiler internals that did not compile with the particular nightly version used. diesel_codegen for example. But I guess making this work is a non-goal.

@dimbleby

This comment has been minimized.

dimbleby commented Aug 26, 2016

https://docs.rs/crate/c-ares-sys/ (and as a result, https://docs.rs/crate/c-ares/ too).

Need to install libtool to compile the C library being wrapped.

Or, install c-ares directly so that we find the package and don't need to compile our own version - either is supposed to work.

@cuviper

This comment has been minimized.

Member

cuviper commented Aug 26, 2016

https://docs.rs/crate/probe/ appears to have only attempted a few older versions, which don't work with current nightly, but the current 0.1.6 should be fine.

@onur

This comment has been minimized.

Member

onur commented Aug 27, 2016

@cuviper thanks for reporting. Looks like docs.rs returned IoError when trying to build probe 0.1.4+. I'll fix it tomorrow morning.

@diwic

This comment has been minimized.

diwic commented Aug 27, 2016

First - cool stuff! :-)

Second, about https://docs.rs/crate/dbus/0.3.4

Package dbus-1 was not found in the pkg-config search path.
Perhaps you should add the directory containing 'dbus-1.pc'
to the PKG_CONFIG_PATH environment variable
No package 'dbus-1' found

https://docs.rs/crate/alsa/0.1.2 fails with the same error, but missing alsa.pc instead of dbus-1.pc.

Is there some way for me as crate author to indicate that docs.rs needs to install these before compiling my crates? Because this seems like it's not going to scale very well as the number of crates grow with the fast-growing Rust ecosystem...

@lucab

This comment has been minimized.

lucab commented Aug 27, 2016

Thanks for running this service!

I noticed that systemd crates fails to build because of missing C development files: https://docs.rs/crate/systemd/0.0.10

This requires libsystemd-dev (or equivalent) on the building machine.

By the way, what is the OS of the building environment here? Does it have any package manager that could be re-used to install system dependencies on demand? I'm thinking about using the metadata table to encode this information to drive an external package manager.

@onur

This comment has been minimized.

Member

onur commented Aug 27, 2016

@cuviper for some reason cargo is not generating any documentation when we use target option with your crate. I fixed the IoError in docs.rs, probe is available now, but only default platform worked.

@diwic dbus and alsa building fine now.

@lucab docs.rs is using Debian. I am planning to add docs.rs metadata table to Cargo.toml, so people can define extra features and system dependencies.

BTW I installed systemd development files but looks like systemd crate (or one of its dependency) doesn't work with recent nightly.

@nagisa

This comment has been minimized.

nagisa commented Aug 28, 2016

@onur I see you’ve somehow ended up running build.rs stuff when generating documentation. That’s generally unnecessary for majority of crates (notable exceptions are the stuff which use syntex/lalrpop-like scheme to generate code) and plain rustdoc should generate documentation for these crates just fine without any of the dependency libraries existing.

@onur

This comment has been minimized.

Member

onur commented Aug 28, 2016

@nagisa I am not sure how to achieve that but I am using Cargo::ops::compile_pkg to generate documentation. This function is building docs.

@nagisa

This comment has been minimized.

nagisa commented Aug 28, 2016

@onur onur added the bug label Aug 29, 2016

@hoodie

This comment has been minimized.

hoodie commented Aug 30, 2016

https://docs.rs/crate/notify-rust/3.1.1 failed to build, due to the same problems as dbus is there a way to manually trigger rebuilding?

@onur

This comment has been minimized.

Member

onur commented Aug 30, 2016

@hoodie docs.rs has rebuilt every version of notify-rust.

I was planning to add a button to automate rebuild requests but I changed my mind. People can abuse this kind of feature.

@hoodie

This comment has been minimized.

hoodie commented Aug 30, 2016

Perhaps there is a way to authenticate as the crate owner via github?

@msierks

This comment has been minimized.

msierks commented Sep 1, 2016

@onur

This comment has been minimized.

Member

onur commented Sep 1, 2016

@msierks lua crate is looking for lua 5.3.3, and Debian only have lua 5.3.1. There is not much I can do in this case.

@hoodie

This comment has been minimized.

hoodie commented Sep 1, 2016

this raises the question, do you build each crate completely or just run cargo doc? And if the latter, does cargo doc really need to have all build dependencies? This looks like a potential upstream improvement. Does it @steveklabnik?

@onur

This comment has been minimized.

Member

onur commented Sep 1, 2016

@hoodie cargo doc is building crate first.

@msierks

This comment has been minimized.

msierks commented Sep 1, 2016

@onur hmm, well it appears the next release rust-lua will have lua 5.3.3 bundled with it. Someone correct me if I'm wrong.

@steveklabnik

This comment has been minimized.

Member

steveklabnik commented Sep 1, 2016

And if the latter, does cargo doc really need to have all build dependencies?

Yes, because in order to generate docs, it has to build the library, thanks to things like cfg.

@bluss

This comment has been minimized.

Contributor

bluss commented Sep 6, 2016

Thanks for making a great service. https://docs.rs/crate/nodrop-union/0.1.8 simply needs a newer nightly to build. Will it be retried automatically?

@onur

This comment has been minimized.

Member

onur commented Sep 6, 2016

@bluss currently there is no way to trigger rebuilds automatically. I'll upgrade rustc to latest nightly tomorrow.

@dimbleby

This comment has been minimized.

dimbleby commented Sep 6, 2016

Any update on this?

@onur

This comment has been minimized.

Member

onur commented Sep 7, 2016

@bluss nodrop-union have docs now.

@dimbleby sorry I didn't see your first message, c-ares-sys and c-ares should work fine now.

@dimbleby

This comment has been minimized.

dimbleby commented Sep 7, 2016

Great, many thanks!

@Robbepop

This comment has been minimized.

Robbepop commented Sep 12, 2016

docs.rs didn't recognize that I updated my crate Prophet from 0.0.1 to 0.0.2. It is an important update since many things (also documentation) have changed and because I yanked the old version.
docs.rs didn't list my crate in its recent released list, so I guess it was dropped or simply missed.
Is there anything I can do? At the moment I heavily depend on the great documentation generation of docs.rs. :)

@onur

This comment has been minimized.

Member

onur commented Sep 12, 2016

sorry @Robbepop, I think I accidentally removed prophet from build queue while I was trying to remove google-* crates because of #46 yesterday. It is fixed now.

@dnsl48

This comment has been minimized.

dnsl48 commented Oct 9, 2018

The build appears to be using an outdated version of rust - 1.28. Are there any plans to upgrade to the current one?

Build #120313 2018-10-09T22:46:01+02:00

$ rustc --version
rustc 1.28.0-dev (b9bf4f162 2018-06-02)
$ cratesfyi --version
cratesfyi 0.5.0 (579f83b 2018-03-05)
... ... ...
@xieyuheng

This comment has been minimized.

@ZerothLaw

This comment has been minimized.

ZerothLaw commented Oct 14, 2018

https://docs.rs/crate/parsing-tech/0.1.2/builds/121420

Looks like trim_start is only available in Rust 1.30, while docs.rs is still on 1.28

@xieyuheng

This comment has been minimized.

xieyuheng commented Oct 14, 2018

@ZerothLaw
Thanks
I will use github pages for api docs for now

@tikue

This comment has been minimized.

tikue commented Oct 17, 2018

Looks like it doesn't work with crates using the cargo feature rename-dependency.

https://docs.rs/crate/tarpc/0.13.0/builds/121972

@sonmezonur

This comment has been minimized.

sonmezonur commented Oct 20, 2018

I am getting a transparent error while building the docs. But I was able to get Travis build and run locally. It might be related to rustc version.

Fresh jpeg-decoder v0.1.15 error[E0658]: the #[repr(transparent)]attribute is experimental (see issue #43036) --> .cargo/registry/src/github.com-1ecc6299db9ec823/ordered-float-1.0.1/src/lib.rs:44:1 |

@QuietMisdreavus

This comment has been minimized.

Member

QuietMisdreavus commented Oct 20, 2018

Thanks to https://github.com/onur/docs.rs/pull/243, the rustc on docs.rs has been updated to 1.31.0-nightly (78ff609d7 2018-10-19). New crate releases should build with this rust compiler, though releases that previously failed have not been queued up to rebuild yet.

@Thomasdezeeuw

This comment has been minimized.

Thomasdezeeuw commented Oct 25, 2018

https://docs.rs/mio-st redirects to https://docs.rs/mio-st/0.1.0/mio_st/, but says "The requested resource does not exist". Follow up from #233.

@CryZe

This comment has been minimized.

CryZe commented Oct 25, 2018

My crate has not been rebuilt https://docs.rs/crate/livesplit-core/0.10.0

@onur

This comment has been minimized.

Member

onur commented Oct 26, 2018

@CryZe livesplit-core have been rebuilt now.

@alexheretic

This comment has been minimized.

Member

alexheretic commented Oct 27, 2018

Any chance rusttype, glyph_brush_layout, glyph_brush & gfx_glyph will be rebuilt?

Update: They have all been rebuilt now, thanks!

@CryZe

This comment has been minimized.

CryZe commented Oct 27, 2018

@onur Thank you very much ❤️

@diwic

This comment has been minimized.

diwic commented Oct 29, 2018

Please rebuild https://docs.rs/crate/reffers/0.5.0/builds - thanks!

Edit: never mind, uploaded 0.5.1 instead

@asonix

This comment has been minimized.

asonix commented Nov 14, 2018

crates based on zmq-sys built fine a couple days ago, but after releasing some updates around 12 hours ago, it seems docs.rs no longer has libzmq installed to build these packages.

https://docs.rs/crate/tokio-zmq/0.7.0/builds/126983

@konstin

This comment has been minimized.

konstin commented Nov 14, 2018

We had to update the minimum nightly in pyo3 to 2018-11-02 due to an ICE which now makes the docs build fail

@QuietMisdreavus

This comment has been minimized.

Member

QuietMisdreavus commented Nov 16, 2018

@asonix Not sure what happened, but i've (re)installed libzmq in the build container and rebuilt the tokio-zmq docs: https://docs.rs/tokio-zmq/0.7.0/tokio_zmq/

@konstin I've updated the rustdoc in the build container to rustdoc 1.32.0-nightly (6b9b97bd9 2018-11-15) and rebuilt pyo3: https://docs.rs/pyo3/0.5.0/pyo3/

@konstin

This comment has been minimized.

konstin commented Nov 16, 2018

@QuietMisdreavus Thank you!

@asonix

This comment has been minimized.

asonix commented Nov 16, 2018

@QuietMisdreavus Thanks so much!

If you could also rebuild async-zmq-types and futures-zmq, I would greatly appreciate it! (futures-zmq is less important because I'll be releasing a (rather large) update to that pretty soon)

@asonix

This comment has been minimized.

asonix commented Nov 16, 2018

Thank you!

@Boscop

This comment has been minimized.

Boscop commented Nov 25, 2018

Why does docs.rs fail to build the docs for diesel-geography while travis can build it?
It fails to build the postgis dependency, BUT docs.rs successfully builds the docs of the postgis crate itself.

@TimonPost

This comment has been minimized.

TimonPost commented Nov 27, 2018

I am not sure why I get this error: character literal may only contain one codepoint: 'color'

see:
https://docs.rs/crate/crossterm/0.5.0/builds/128701

@steveklabnik

This comment has been minimized.

Member

steveklabnik commented Nov 27, 2018

@TimonPost these two lines https://github.com/TimonPost/crossterm/blob/f068ae69b1cbd4ccee43b9b9a140844368f7b667/src/modules/style/color.rs#L28

are inside the backticks, and so Rust is trying to interpret them as code.

Here's a PR: TimonPost/crossterm#53

@mqudsi

This comment has been minimized.

mqudsi commented Nov 29, 2018

Can someone please rebuild rsevents-extra (build failure from September, I came to this thread but didn't comment because I saw other people complaining about similar problems with their repos and didn't want to add to the noise not realizing it wouldn't be rebuilt if I didn't comment)? If the issue with path resolution persists, I can push out a new release from the latest (neosmart/rsevents-extra@c582a9e) which switched it over to rust 2018 which bypasses the issue entirely.

Much appreciated.

@QuietMisdreavus

This comment has been minimized.

Member

QuietMisdreavus commented Nov 30, 2018

@mqudsi Done! https://docs.rs/rsevents-extra/0.1.0/rsevents_extra/

@Boscop Those docs of postgis were built with an old version of rustdoc, back in March. Attempting to build it with the nightly that docs.rs was using yields the same error. Updating rustc fixes the problem, so i've been able to build diesel-geography: https://docs.rs/diesel-geography/0.2.0/diesel_geography/

Note: Docs.rs is now running rustc 1.32.0-nightly (3e90a12a8 2018-11-29) to build/document crates.

@KodrAus

This comment has been minimized.

Contributor

KodrAus commented Dec 4, 2018

It looks like crates using recently stabilizing features like package renaming in Cargo.toml can't build using the 2018-11-29 nightly:

thread 'main' panicked at 'ErrorMessage { msg: "feature `rename-dependency` is required\n\nconsider adding `cargo-features = [\"rename-dependency\"]` to the manifest" }

failed to parse manifest at `/home/cratesfyi/.cargo/registry/src/github.com-1ecc6299db9ec823/sval-0.0.2/Cargo.toml`', src/bin/cratesfyi.rs:142:13

I'm hitting this issue with a crate called sval.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment