PresidentialParadise / Sunny-Flowers

A music bot build in Serenity/Rust.
European Union Public License 1.2
15 stars 5 forks source link

Rust 2021 Edition #46

Open Druue opened 2 years ago

Druue commented 2 years ago

Slated for October 21. https://doc.rust-lang.org/edition-guide/rust-2021/index.html

erwanvivien commented 2 years ago

Hello, this bug makes the Dockerfile not working (version problem), I believe version 1.56 of cargo in Docker fixes it :)

error: failed to parse manifest at `/app/Cargo.toml`

Caused by:
  feature `edition2021` is required

  The package requires the Cargo feature called `edition2021`, but that feature is not stabilized in this version of Cargo (1.55.0 (32da73ab1 2021-08-23)).
  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-2021 for more information about the status of this feature.
thread 'main' panicked at 'Exited with status code: 101', /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/cargo-chef-0.1.31/src/recipe.rs:145:27
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Druue commented 2 years ago

Ah, interesting! I'll take a look

erwanvivien commented 2 years ago

I believe it has been fixed, please close