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

Fails when no package.version #8

Closed
mightyiam opened this issue Aug 26, 2023 · 5 comments
Closed

Fails when no package.version #8

mightyiam opened this issue Aug 26, 2023 · 5 comments

Comments

@mightyiam
Copy link

I'm running cargo-run-bin at the root of a workspace, where the version is not specified as package.version but as workspace.package.version. And I'm getting

run-bin failed: missing field `version` for key `package` at line 51 column 1
@mightyiam
Copy link
Author

@dustinblackman
Copy link
Owner

dustinblackman commented Aug 26, 2023

Good call out, there's no proper support for workspaces. Are you defining binaries in your individual crates Cargo.toml, or the workspaces Cargo.toml?

I'd assume the workspace Cargo.toml is the correct spot. https://doc.rust-lang.org/cargo/reference/workspaces.html#the-metadata-table

@mightyiam
Copy link
Author

I'm defining binaries in the workspace Cargo.toml.

@dustinblackman
Copy link
Owner

Fixed in 208b000

Thanks!

@mightyiam
Copy link
Author

Dustin, kudos on the response time. And thank you!

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

2 participants