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

Support version-less manifests #10

Closed
faern opened this issue May 18, 2024 · 1 comment
Closed

Support version-less manifests #10

faern opened this issue May 18, 2024 · 1 comment

Comments

@faern
Copy link

faern commented May 18, 2024

Since Rust 1.75.0 the version field is optional. I have a crate without version. But when running cargo author I get:

error: failed to load manifest for workspace member `/foo`
caused by: failed to load manifest for workspace member `/foo`
caused by: failed to parse manifest at `/foo/Cargo.toml`
caused by: missing field `version`
in `package`

I guess this crate must upgrade its version on cargo for it to work?

@Henning-K
Copy link
Owner

Thanks for the heads-up on this change.

From what I could find in the linked pull request, the version field is now optional, but becomes required when you want to publish the crate.

It will be fixed in the next point release along with a crash¹ I found while testing changes for this issue (and some refactoring).

¹: no authors field in the package field AND no dependencies

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