Skip to content

Incompatible with rust edition "2024" #833

Open
@justbuchanan

Description

@justbuchanan

I generated a simple project from template with cargo generate esp-rs/esp-idf-template cargo and was able to use espflash's save-image feature without issue. However, if I change the rust edition in Cargo.toml to edition = "2024", I get this error message:

$ cargo espflash save-image --chip esp32c3 out.bin

Error: cargo_espflash::invalid_workspace

  × The current workspace is invalid, and could not be loaded
  help: Ensure that a valid `Cargo.toml` file is in the executing directory

It would be nice if the error message was a bit more specific here. While I reproduced this problem using a fresh project generated from template, I initially ran into it on an established project and spent a while trying to figure this out.

I'm using espflash version "3.3.0".

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions