Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement cargo install #2026

Merged
merged 2 commits into from
Oct 19, 2015
Merged

Implement cargo install #2026

merged 2 commits into from
Oct 19, 2015

Commits on Oct 19, 2015

  1. Basic work for cargo install

    steveklabnik authored and alexcrichton committed Oct 19, 2015
    Configuration menu
    Copy the full SHA
    f8308bc View commit details
    Browse the repository at this point in the history
  2. Finish implementing cargo install

    This commit is an implementation of [RFC 1200][rfc] which brings two new
    subcommands: `cargo install` and `cargo uninstall`. Most of this is a straight
    implementation of the RFC, but a few tweaks were made:
    
    * The `-p` or `--package` arguments are no longer needed as you just pass
      `crate` as a bare argument to the command, this means `cargo install foo`
      works and downloads from crates.io by default.
    * Some logic around selecting which crate in a multi-crate repo is installed has
      been tweaked slightly, but mostly in the realm of "let's do the thing that
      makes sense" rather than the literal "let's do what's in the RFC".
      Specifically, we don't pick a crate with examples if there are multiple crates
      with binaries (instead an error is generated saying there are multiple binary
      crates).
    
    [rfc]: https://github.com/rust-lang/rfcs/blob/master/text/1200-cargo-install.md
    alexcrichton committed Oct 19, 2015
    Configuration menu
    Copy the full SHA
    bc60f64 View commit details
    Browse the repository at this point in the history