Skip to content
This repository was archived by the owner on Dec 30, 2020. It is now read-only.

docs.rs fails to build for systray 0.4.0 #36

Closed
PonasKovas opened this issue Sep 18, 2019 · 7 comments
Closed

docs.rs fails to build for systray 0.4.0 #36

PonasKovas opened this issue Sep 18, 2019 · 7 comments
Assignees

Comments

@PonasKovas
Copy link

https://docs.rs/crate/systray/0.3.0

Is this project dead?

@qdot qdot changed the title docs.rs fails to build systray-0.3.0 docs.rs fails to build for systray 0.4.0 Feb 16, 2020
@qdot
Copy link
Owner

qdot commented Feb 16, 2020

Ok, looks like docs.rs building is still a problem on 0.4.0, due to the special requirements of the libappindicator library. I need to make a "docs" feature that would just build the generic API portions.

@jonhoo
Copy link

jonhoo commented Feb 16, 2020

Alternatively you can ask the docsrs people (on Discord) whether they could add libappindicator to the VM that builds the docs. They're pretty helpful with stuff like that generally!

@cdepillabout
Copy link

If you go to docs.rs for systray-0.4.0, you can find a build log for the failed 0.4.0 build:

https://docs.rs/crate/systray/0.4.0/builds/221996

At the bottom of this page, there is a link to open an issue in case of a build failure.

If you try to open an issue, you are presented with this comment:

If you need a system dependency added for your crate to build, consider making a PR to https://github.com/rust-lang/crates-build-env instead of opening an issue here. There are detailed instructions for this at https://forge.rust-lang.org/docs-rs/add-dependencies.html.

It looks like this is probably the way to go.

I would be pretty happy if there were docs for systray available!

@retep998
Copy link

Perhaps you could also set Windows as the default target, since that has no dependencies on third party C libraries, just winapi. If the primary target fails to build then docs.rs won't build any docs for any target.

@Ciantic
Copy link

Ciantic commented Jul 9, 2020

If windows target is all that is required, it could be done by just adding this to Cargo.toml

[package.metadata.docs.rs]
default-target = "x86_64-pc-windows-msvc"

@jyn514
Copy link

jyn514 commented Jul 25, 2020

Fixed by rust-lang/crates-build-env#59. I queued a rebuild so you don't have to publish a new release :) https://docs.rs/crate/systray/0.4.0

@qdot
Copy link
Owner

qdot commented Jul 25, 2020

@jyn514 Thanks! 👍

@qdot qdot closed this as completed Jul 25, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants