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
Remove duplicated crc32 algorithm #127
Comments
As mentioned in #128, another option could be to instead depend on a external crate for crc32. Any opinions? |
I'd only depend on an external crate if it doesn't have dependencies or if it offers direct benefits. The Another criterion could be performance. |
I'll make a PR using crc32fast and we can take it from there |
I have a crc32fast branch working, but it currently depends on srijs/rust-crc32fast#8 in order to work. I'm awaiting follow up on that PR before I can go ahead and open a PR for this. |
I think |
Thanks, I'll have a look at that |
It does not. I added Clone to State & U32Value but same issue.
This is what the code's already doing and is the issue resolved by srijs/rust-crc32fast#8 |
Oops, that should have been |
Just me being confused too :-) I was looking at this State: https://github.com/image-rs/image-png/blob/master/src/decoder/stream.rs#L29 |
Yep, this works! Rebasing etc |
There's a crc32 implementation in src/crc.rs
A duplicate also lives in tests/check_testimages.rs
This issue is for reusing the code from src/crc.rs and deleting the duplicated code in tests/check_testimages.rs
The text was updated successfully, but these errors were encountered: