Skip to content

Could not publish crates with 2024 edition #10091

@Evian-Zhang

Description

@Evian-Zhang

I followed the Rust 2024 call for testing to upgrade my crate static-keys (which is a crate running in nightly) to Rust 2024 edition.

However, when I want to publish this crate by cargo publish, it turns out error:

error: failed to publish to registry at https://crates.io

Caused by:
  the remote server responded with an error (status 400 Bad Request): failed to parse `Cargo.toml` manifest file

  TOML parse error at line 13, column 11
     |
  13 | edition = "2024"
     |           ^^^^^^
  data did not match any variant of untagged enum MaybeInherited

Is this behavior intentional?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions