image-rs / jpeg-decoder

JPEG decoder written in Rust
Apache License 2.0
148 stars 88 forks source link

`cargo test` fails with "failed to download `bumpalo v3.11.0" #258

Closed micahsnyder closed 2 years ago

micahsnyder commented 2 years ago

The rust-toolchain file locks this project to Rust 1.48.0

Running cargo test then fails because bumpalo dependency requires the 2021 edition.

jpeg-decoder on  master [!] is 📦 v0.2.6 via 🦀 v1.48.0
❯ cargo test
error: failed to download `bumpalo v3.11.0`

Caused by:
  unable to get packages from source

Caused by:
  failed to parse manifest at `/home/micasnyd/.cargo/registry/src/github.com-1ecc6299db9ec823/bumpalo-3.11.0/Cargo.toml`

Caused by:
  failed to parse the `edition` key

Caused by:
  this version of Cargo is older than the `2021` edition, and only supports `2015` and `2018` editions.

Bumpalo switched to the 2021 edition with their 3.11 release on 2022/08/17.

Bumping the rust toolchain from 1.48 -> 1.56 resolves the issue. I'll put in a PR. I can bump to 1.63 though if you prefer.