You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# This points to a file in the repository (relative to this `Cargo.toml`). The
# contents of this file are stored and indexed in the registry.
readme = "..."
The problem is that these kinds of links cannot point to outside of package root, since anything outside of package root won't be able to be packaged in the first place.
With workspaces and not all Cargo manifest files being on the (git) repository top-level anymore, usage of word repository here is now confusing and should be avoided in package-level documentation.
The notion of package root (vs. repository) is also important important in explaining workspace.members and workspace.exclude, as I've noted here: #4268 (comment)
The text was updated successfully, but these errors were encountered:
[docs] Update language regarding repository vs package root
In the current documentation, there are many places with language that
assumes a *repository* (as in VCS) is the same as *package root* (the
directory where `Cargo.toml` sits).
With the new workspace features, this is far from true now, and the
inaccurate language makes it difficault for newbies or developers
without much familiarity with the cargo internals with authoring their
manifest files.
This diff tries to use the right terms for places any of these concepts
is referred to:
* Package root,
* Workspace root,
* VCS repository, and
* Package repository/index, like crates.io.
Fixes <#4367>
From http://doc.crates.io/manifest.html:
The problem is that these kinds of links cannot point to outside of package root, since anything outside of package root won't be able to be packaged in the first place.
With workspaces and not all Cargo manifest files being on the (git) repository top-level anymore, usage of word repository here is now confusing and should be avoided in package-level documentation.
The notion of package root (vs. repository) is also important important in explaining
workspace.members
andworkspace.exclude
, as I've noted here: #4268 (comment)The text was updated successfully, but these errors were encountered: