Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cargo: Support distributed package indexes.
Indexes are listed in ~/.cargo/sources.json and ~/.cargo/local-sources.json, the former of which is stored in the rust source tree in src/cargo. Each entry in either of these files is a source, which is a dictionary with (currently) a single key, "url". The supplied url should point to a json list, each element of which should be a dictionary with four keys: "name", "uuid", "url", and "method". The name and uuid serve to identify the package; the method describes how to fetch the package; the url describes where to fetch it from. Currently supported methods are "git", "http", and "file". Signed-off-by: Elly Jones <elly@leptoquark.net>
- Loading branch information
Elly Jones
committed
Dec 17, 2011
1 parent
10cf4a1
commit 8b7a41f
Showing
2 changed files
with
135 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"elly": { | ||
"url": "https://raw.github.com/elly/rust-packages/master/packages.json" | ||
} | ||
} |