mozilla/rust — pull request #1760 by tychosci (2012-02-05 14:51:26+00:00)
Title: cargo: Add local mode and use it by default

Issue #1756

The changes are the following:

* Add local mode which does operate with project's ".cargo" rather than "~/.cargo".
* Use local mode by default. you can change it with "-g" or "--global", for global mode operation.
* Add functions that required to add lib directory in project's ".cargo" to linker search path.
* Use `std::getopts` in cargo.rs to avoid arguments ordering problems.