-
Notifications
You must be signed in to change notification settings - Fork 4
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
error[E0277]: the trait bound *::*Encoder<W>: std::io::Write
is not satisfied
#42
Comments
*::*Encoder<W>: std::io::Write
is not satisfied*::*Encoder<W>: std::io::Write
is not satisfied
Thank you for reporting this! I remember opening an issue on the Rust repository about similar Zopfli documentation build problems many months ago: rust-lang/rust#117796. Back then, I worked around This issue might be unrelated, but I find it frustrating to figure out the root cause and then work around changes that break things that used to work. Documentation is for human consumption, it's already grunt enough work to keep it relevant and up to date, and it should be generated even if the code is slightly invalid, especially given Rust's commitment to "stability without stagnation." (Though that doesn't apply to nightlies, you have to deal with nightlies if you want your docs to show up on docs.rs, so you practically don't have much of a choice.) I could tackle this at some point, but my bandwidth for open source work is very limited lately, so I have to prioritize using my free time for more fulfilling open source endeavors. If someone else can dedicate the time to open a PR for this, it would be much appreciated. Given how increasingly busy everyone is, this is a steep ask, but if someone does submit it, I'll review and merge it. |
For the sake of completeness, I think it's worth mentioning that, while the issue I linked to mentions ed7c9cd as a fix, I tried running The Some may argue that's what one gets by depending on nightly features, which technically are not stable. But let me say this: On the other hand, given the popularity of compression algorithms using such a hash, I think But I think I've shared enough of my thoughts on the situation and might be getting a bit off-topic here. The bottom line is that, at the moment, Zopfli's rustdoc is stuck in nightly feature hell due to a combination of factors. Unfortunately, there aren’t any good ways to move forward until the ecosystem aligns, which is a problem beyond computer engineering, I'm afraid. What's your situation with the |
Regarding keeping docs compiling under all feature permutations: it’s indeed a nightmare. I embarked down that path before and even after I sorted out all the conditional attributes (and rewrote what would have been normal doc tests with arcane cgf_attr syntax instead) it ended up causing other issues in the ecosystem, eg rust-lang/rustfmt#5420 |
I didn't mention this here at the time I pushed it, but on the commit that fixed this issue I decided to just drop the While this may not be the best solution from a performance perspective, it's preferable to having Zopfli fail to build with updated nightly toolchains. On the bright side, Zopfli spends most of its execution time on actual compression in typical cases, so the concrete choice of block hasher implementation isn't that critical. I'm looking forward to re-enabling the |
When I tried to build the documentation for
zip
crate v1.3.0 (cargo doc
), the following errors occurred:This error seems to occur at least since Rust 1.76.0.1 There is no problem at least as of Rust 1.74.0, so the error may be caused by the standard library rather than this crate.
Environment:
Footnotes
https://docs.rs/crate/zopfli/0.8.0/builds ↩
The text was updated successfully, but these errors were encountered: