Skip to content

Commit 675921a

Browse files
committed
Auto merge of #6306 - gilescope:patch-2, r=alexcrichton
Git repos pointing to workspaces Docs were not clear that member crates in workspaces could be accessed via a git dependency. Please feel free to edit my edit to make it clearer!
2 parents 4e6bbd7 + 630067e commit 675921a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/doc/src/reference/specifying-dependencies.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,8 @@ rand = { git = "https://github.com/rust-lang-nursery/rand" }
113113

114114
Cargo will fetch the `git` repository at this location then look for a
115115
`Cargo.toml` for the requested crate anywhere inside the `git` repository
116-
(not necessarily at the root).
116+
(not necessarily at the root - for example, specifying a member crate name
117+
of a workspace and setting `git` to the repository containing the workspace).
117118

118119
Since we haven’t specified any other information, Cargo assumes that
119120
we intend to use the latest commit on the `master` branch to build our package.

0 commit comments

Comments
 (0)