Rahix / avr-hal-template

cargo-generate template for avr-hal projects
Apache License 2.0
130 stars 28 forks source link

Error Building base Template for Uno #20

Closed avlec closed 1 year ago

avlec commented 1 year ago

Hey I was trying to use this template as a starting point after having an issue from following a guide that just uses your HAL and it's giving me the same error here as it was following a guide. Wondering if you had any ideas what could be going wrong...

error: failed to parse manifest at `/home/avlec/bikelo/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

When I remove the edition line from Cargo.toml or change it to 2018 it moves the error to a different package.

    Updating git repository `https://github.com/rahix/avr-hal`
    Updating crates.io index
 Downloading crates ...
error: failed to download `proc-macro2 v1.0.66`

Caused by:
  unable to get packages from source

Caused by:
  failed to parse manifest at `/home/avlec/.cargo/registry/src/github.com-1ecc6299db9ec823/proc-macro2-1.0.66/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.
avlec commented 1 year ago

Issue seemed to be from overridden rustup nightly-2021-01-07-x86_64-unknown-linux-gnu, changing back to nightly-2023-07-14-x86_64-unknown-linux-gnu