kornelski / cavif-rs

AVIF image creator in pure Rust
https://lib.rs/cavif
BSD 3-Clause "New" or "Revised" License
582 stars 29 forks source link

Published crates currently don’t compile #25

Closed AndrewKvalheim closed 3 years ago

AndrewKvalheim commented 3 years ago

The published crates currently fail to compile due to a mismatch between the cavif and ravif versions:

$ cargo install cavif
    Updating crates.io index
  Installing cavif v0.6.6
[…]
   Compiling ravif v0.6.6
   Compiling cavif v0.6.6
error[E0063]: missing field `threads` in initializer of `ravif::Config`
   --> /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/cavif-0.6.6/src/main.rs:154:77
    |
154 |         let (out_data, color_size, alpha_size) = encode_rgba(img.as_ref(), &Config {
    |                                                                             ^^^^^^ missing `threads`

cavif 0.6.6 depends on ravif 0.6.4, but Cargo resolves the dependency to 0.6.6.

I’m not very familiar with publishing crates. Maybe it’s missing a lock file?

kornelski commented 3 years ago

Thanks. I've yanked the problematic version.