Skip to content

cargo espflash fails when workspace Cargo.toml says edition=2024 #799

Closed
@acmorrow

Description

@acmorrow

With a trivial Cargo.toml as generated by cargo init, the cargo +esp espflash flash command fails with an immediate error:

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

If edition is put back to 2021, this error does not happen (though of course other errors do since this is not really a valid esp project).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions