Skip to content

cargo package and cargo publish cannot serialise Cargo.toml #9787

Closed
@ghost

Description

Problem

Running cargo package or cargo publish yields an error, despite cargo build and cargo run working successfully.

error: failed to prepare local package for uploading

Caused by:
  values must be emitted before tables

Steps

  1. Clone the project I'm trying to publish
  2. Run cargo package or cargo publish on the project

Notes

Output of cargo version:
cargo 1.56.0-nightly (b51439fd8 2021-08-09)

Platform:
aarch64-apple-darwin, MacBook Air (M1, 2020), macOS Monterey (12.0 beta 5; 21A5304g)

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions