-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Closed
Labels
A-diagnosticsArea: Error and warning messages generated by Cargo itself.Area: Error and warning messages generated by Cargo itself.A-documenting-cargo-itselfArea: Cargo's documentationArea: Cargo's documentationA-workspacesArea: workspacesArea: workspaces
Description
e.g., Cargo.toml:
[workspace]
members = [
...
]
[replace]
"rls-data" = { path = "data" }
The error here is that the package id is missing a version number (changing rls-data to rls-data:0.7.0 fixed the problem). However, the error cargo gives is "no package or project section found.".
The documentation here is confusing too: this section states "Each key in the [replace] table is a package id specification" where "package id specification" links to http://doc.crates.io/pkgid-spec.html where the version appears optional, both in the grammar and the examples.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
A-diagnosticsArea: Error and warning messages generated by Cargo itself.Area: Error and warning messages generated by Cargo itself.A-documenting-cargo-itselfArea: Cargo's documentationArea: Cargo's documentationA-workspacesArea: workspacesArea: workspaces