carols10cents/zopfli

compilation fails with Debian Stable

Closed this issue · 2 comments

When running cargo install cargo-deb it fails with:

error: failed to compile `cargo-deb v1.34.1`, intermediate artifacts can be found at `/tmp/cargo-installOXYI1N`

Caused by:
  failed to parse manifest at `/home/markus/.cargo/registry/src/github.com-1ecc6299db9ec823/zopfli-0.5.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.

The failure happened on Debian stable amd64+arm32:

> rustc --version                                                                                                                                                                                                           
rustc 1.48.0
> cargo --version                                                                                                                                                                                                           
cargo 1.46.0

As workaround I removed edition and resolver in ~/.cargo/registry/src/github.com-1ecc6299db9ec823/zopfli-0.5.0/Cargo.toml

The fix for this is to update to a newer version of the Rust compiler, or specify an older version of zopfli.