Skip to content

cargo package fails to serialize TOML #9337

@tyranron

Description

@tyranron

Problem
Cannot package or publish a crate.

cargo package errors as following:

error: failed to prepare local package for uploading

Caused by:
  values must be emitted before tables

Steps

  1. git clone https://github.com/instrumentisto/medea
  2. git checkout e4f1a07180fcd3ce97d754a7e2c4a671b71ae708
  3. cd proto/client-api/
  4. cargo package --allow-dirty --verbose

Notes

Output of cargo version:

❯ cargo version                                 
cargo 1.51.0 (43b129a20 2021-03-16)

❯ uname -a
Darwin Lilium.local 19.6.0 Darwin Kernel Version 19.6.0: Tue Jan 12 22:13:05 PST 2021; root:xnu-6153.141.16~1/RELEASE_X86_64 x86_64

It seems similar to #5906.

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