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

Workspace inheritance breaks cargo readme #81

Open
leighmcculloch opened this issue Dec 2, 2022 · 4 comments
Open

Workspace inheritance breaks cargo readme #81

leighmcculloch opened this issue Dec 2, 2022 · 4 comments

Comments

@leighmcculloch
Copy link

leighmcculloch commented Dec 2, 2022

Projects that use workspace inheritance, such as to replace a version in a crate toml with version.workspace = true cause cargo readme to error with:

Error: invalid type: map, expected a string for key `package.version` at line 9 column 21

Details about workspace inheritance: https://doc.rust-lang.org/cargo/reference/workspaces.html

@robertbastian
Copy link

Consider using the cargo_toml crate to parse Cargo.toml instead of doing it yourself

@yassun7010
Copy link

Any progress on this Issue?

I am very interested in this issue.

@alexspa
Copy link

alexspa commented Jan 19, 2024

I experience similar problems receiving following errors:

$cargo readme
Error: TOML parse error at line 1, column 1
  |
1 | [package]
  | ^^^^^^^^^^
invalid type: map, expected a string
$cargo readme
Error: TOML parse error at line 1, column 1
  |
1 | [workspace]
  | ^
missing field `package``

@joshlf
Copy link

joshlf commented Oct 12, 2024

Chiming in as someone broken by this: google/zerocopy#1884

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants