graydon/rust — Issue #1358: cargo: refresh source index from remote crates
Author: graydon
Created: 2011-12-20 19:55:48+00:00
State: open
Labels: cargo

There should be a cargo command (say "cargo index crate.rc") that takes a crate file and updates (in-place) a sources file with fresh metadata extracted from the crate file. This is something a person operating a public sources-list will want to run when registering a new package.

There should also be a bulk re-indexing command ("cargo reindex") that can run regularly that will go through a sources file and attempt to fetch the crate, extract the metadata, and update the index for each package registered in the sources list. This is something a person operating a public sources-list will want to run periodically, to keep listing up-to-date concerning descriptions, dead packages, dependencies, etc.