-
Notifications
You must be signed in to change notification settings - Fork 26
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
Documentation fails to build #54
Comments
Hey @jonhoo, thanks for the issue! I worked around this where it wasn't too inconvient by doing this: https://github.com/constellation-rs/amadeus/blob/master/amadeus-postgres/src/lib.rs#L171-L174 I don't know if that's an option for noria (if you haven't already worked around it)? I haven't done it for |
Hehe, no, unfortunately noria is in the same position as |
The workaround doesn't actually necessitate naming the concrete type. It just involves creating a dummy struct that implements the desired trait, and naming that instead iff building documentation. Like: amadeus/amadeus-postgres/src/lib.rs Lines 171 to 174 in 790c1d1
amadeus/amadeus-core/src/util.rs Lines 65 to 84 in 790c1d1
|
Ohh, I see, interesting.. Yeah, that could maybe work. Thanks for the pointer! |
Hmm, unfortunately this trick only really works one crate deep. If I have two crates, both with |
I've filed that as rust-lang/rust#73061 — fun times on nightly 😅 |
Are you seeing I think if you control (or can fork) the dependencies then you can use Line 34 in 790c1d1
|
No, they are not passed to dependencies, which is exactly why it breaks. It's true that you could work around this with features, but I'd rather not add a feature just for building docs, because it becomes infectious — every downstream crate would need to also enable that feature for their docs, all the way down. This shouldn't be necessary. It's interesting, because there are two different issues at play here. The first is that |
That's a good point and I agree. Thanks for surfacing the problem, hopefully it'll attract some attention and failing that I can have a go at fixing it later in the year. |
Looks like rust-lang/rust#72080 is the PR to watch. It won't fix the issue that requires |
Heads up that rust-lang/rust#73061 just landed, so starting in the next nightly you should be all good using just |
Now that rust-lang/rust#73566 has landed, even the |
Thanks for the heads up! Always feels good to remove a long-standing workaround :) Will be closed by #97 |
Hey there!
Just a heads up that
amadeus-parquet 0.1.7
, and older versions of some otheramadeus-
crates (likeamadeus-postgres 0.1.5
) are affected by rust-lang/rust#65863, and their documentation do not build withcargo doc
. See for example https://docs.rs/crate/amadeus-parquet/0.1.7. Not much to do about it at the moment (except by trying to fix the compiler), just trying to bring attention to the problem :)The text was updated successfully, but these errors were encountered: