Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
ghost opened this issue Aug 14, 2021 · 1 comment · Fixed by #9789
Closed

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

ghost opened this issue Aug 14, 2021 · 1 comment · Fixed by #9789
Labels
C-bug Category: bug

Comments

@ghost
Copy link

ghost commented Aug 14, 2021

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)

@ghost ghost added the C-bug Category: bug label Aug 14, 2021
@ehuss
Copy link
Contributor

ehuss commented Aug 14, 2021

Thanks for the report! I have posted a fix at #9789.

@bors bors closed this as completed in e8a78cc Aug 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant