You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[dependencies]
jpegxl-rs = { version = "=0.10.3", features = ["vendored"] }
somehow led to cargo build failing with:
error[E0308]: mismatched types
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/jpegxl-rs-0.10.3+libjxl-0.10.2/src/encode.rs:398:17
|
396 | JxlEncoderAddBox(
| ---------------- arguments to this function are incorrect
397 | self.enc,
398 | Metadata::box_type(t),
| ^^^^^^^^^^^^^^^^^^^^^ expected `*const JxlBoxType`, found `JxlBoxType`
|
= note: expected raw pointer `*const JxlBoxType`
found struct `JxlBoxType`
note: function defined here
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/jpegxl-sys-0.10.4+libjxl-0.10.3/src/encode.rs:243:12
|
243 | pub fn JxlEncoderAddBox(
| ^^^^^^^^^^^^^^^^
(note that the opposite, jpegxl-rs 0.10.4 failing to wrap jpegxl-sys 0.10.3, also happened to me)
The following fixed it for me:
[dependencies]
jpegxl-sys = { version = "=0.10.3" }
jpegxl-rs = { version = "=0.10.3", features = ["vendored"] }
Should jpegxl-rs rely on a fixed version of jpegxl-sys to prevent this API interface version mismatch?
For example replace the version by "=0.10.4" here:
Having the following in my
Cargo.toml
:somehow led to
cargo build
failing with:(note that the opposite, jpegxl-rs 0.10.4 failing to wrap jpegxl-sys 0.10.3, also happened to me)
The following fixed it for me:
Should jpegxl-rs rely on a fixed version of jpegxl-sys to prevent this API interface version mismatch?
For example replace the version by "=0.10.4" here:
jpegxl-rs/jpegxl-rs/Cargo.toml
Lines 37 to 40 in 14a7101
The text was updated successfully, but these errors were encountered: