eframe_template icon indicating copy to clipboard operation
eframe_template copied to clipboard

Rust-Analyzer fails on Image crate version 0.25

Open Resonanz opened this issue 1 year ago • 4 comments

Using Rust-Analyzer inside VS Code.

Add image = "0.24" to dependencies = works fine.

Add image = "0.25.2" to dependencies leads to Rust-Analyzer errors:

Failed to run build scripts of some packages.

cargo check failed to start: Cargo watcher failed, the command produced no valid metadata (exit code: ExitStatus(unix_wait_status(25856))):

error: package `bitstream-io v2.5.0` cannot be built because it requires rustc 1.79 or newer, while the currently active rustc version is 1.76.0

Either upgrade to rustc 1.79 or newer, or use

cargo update bitstream-[[email protected]](vscode-file://vscode-app/snap/code/164/usr/share/code/resources/app/out/vs/code/electron-sandbox/workbench/workbench.html) --precise ver

where `ver` is the latest version of `bitstream-io` supporting rustc 1.76.0

[Extension Info](vscode-file://vscode-app/snap/code/164/usr/share/code/resources/app/out/vs/code/electron-sandbox/workbench/workbench.html): Version 0.3.2045, Server Version 0.3.2045-standalone

Resonanz avatar Jul 25 '24 22:07 Resonanz

Right, I'd had an issue like that as well but haven't had time to look into it. IIRC there was a breaking change made in the image crate that I didn't have time account for in my code.

But reading the error message you copied... your problem might be different. You might just need to upgrade your rust version. My problem was related to the breaking change in their change log.

c-git avatar Jul 25 '24 23:07 c-git

I got this fixed by updating to rustc 1.80:

rustup self update

Then update rustc version specified in the file rust-toolchain at the root of this repo.

Also:

  • emilk/egui#4954

dehann avatar Aug 18 '24 08:08 dehann

the PR in egui has nothing to do with it :-)

bircni avatar Aug 18 '24 10:08 bircni

Hi @Resonanz do you still have an ongoing issue?

c-git avatar Dec 27 '24 20:12 c-git