Skip to content

Commit 4508da2

Browse files
committed
rustpkg: In doc, mention other implicit RUST_PATH entries
as per Graydon's comment
1 parent d834c0d commit 4508da2

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

doc/rustpkg.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,12 @@ Each directory in this list is a *workspace* for rustpkg.
2121
`../.rust`, `../../.rust`,
2222
and so on for every parent of `.` up to the filesystem root).
2323
That means that if `RUST_PATH` is not set,
24-
then rustpkg will still search for workspaces in `./.rust` and so on
24+
then rustpkg will still search for workspaces in `./.rust` and so on.
25+
`RUST_PATH` also implicitly contains an entry for the system path:
26+
`/usr/local` or the equivalent on Windows.
27+
This entry comes after the implicit entries for `./.rust` and so on.
28+
Finally, the last implicit entry in `RUST_PATH` is `~/.rust`
29+
or the equivalent on Windows.
2530

2631
Each workspace may contain one or more packages.
2732

0 commit comments

Comments
 (0)