eframe_template icon indicating copy to clipboard operation
eframe_template copied to clipboard

Cannot add cargo_extras to dependencies (failed to download mime_guess2 v2.3.0)

Open Uomocosa opened this issue 8 months ago • 3 comments

Steps to reproduce:

  • Step 1: Use this template (creating a new repo)
  • Step 2: Followed instructions to rename 'eframe_template'.
  • Step 3: cargo add egui_extras.
  • Step 4: cargo run --release. (Also works with cargo run, trunk serve, ...)

Repo:

For commodity I've created a new repo following the previous steps: https://github.com/Uomocosa/eframe-porva-3


Error message:

error: failed to download `mime_guess2 v2.3.0`

       Caused by:
         unable to get packages from source

       Caused by:
         failed to parse manifest at `C:\Users\acer\.cargo\registry\src\index.crates.io-6f17d22bba15001f\mime_guess2-2.3.0\Cargo.toml`

       Caused by:
         feature `edition2024` is required

         The package requires the Cargo feature called `edition2024`, but that feature is not stabilized in this version of Cargo (1.81.0 (2dbb1af80 2024-08-20)).
         Consider trying a newer version of Cargo (this may require the nightly release).
         See https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#edition-2024 for more information about the status of this feature.

Uomocosa avatar Apr 14 '25 16:04 Uomocosa

To add to this, I think I menaged to solve this issue, but I'm not confident enough on my solution to make a pull request.

In the .toml file, I've changed: edition = "2024" cargo = "1.86" and also bumped up egui, eframe and egui_extras from 0.30 to 0.31

Lastly I've changed the rust-toolchain to use channel = "1.86.0" I tried with "1.86" but it created problems.

All these changes are reported in the same repo: https://github.com/Uomocosa/eframe-porva-3

Uomocosa avatar Apr 15 '25 11:04 Uomocosa

Yeah, we should update this template to use a newer MSRV and edition=2024

emilk avatar Apr 24 '25 17:04 emilk

I ran into the same issue today.

RasmusHogslatt avatar May 25 '25 18:05 RasmusHogslatt