kornelski / cavif-rs

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

Issue installing through cargo [error E0308] #45

Closed Draghmar closed 2 years ago

Draghmar commented 2 years ago

Hi I'm not sure if it's related to the cavif itself but as it happens during installation so here it goes. I wanted to install newest version 1.3.1 as I previously was using one compiled next to cargo one. But during installation this happens:

Compiling ravif v0.8.6
error[E0308]: mismatched types
   --> /home/draghmar/.cargo/registry/src/github.com-1ecc6299db9ec823/ravif-0.8.6/src/av1encoder.rs:278:47
    |
278 |         speed_settings.fast_scene_detection = true;
    |                                               ^^^^ expected enum `SceneDetectionSpeed`, found `bool`

For more information about this error, try `rustc --explain E0308`.
error: could not compile `ravif` due to previous error
warning: build failed, waiting for other jobs to finish...
error: failed to compile `cavif v1.3.1`, intermediate artifacts can be found at `/tmp/cargo-installmAxIvK`

Caused by:
  build failed

I've got this on two different systems but both on ArchLinux if that matters.

kornelski commented 2 years ago

My bad. I need to update for latest rav1e version.

kornelski commented 2 years ago

cargo update should fix it.