Skip to content

Commit

Permalink
Auto merge of #6823 - spl:clarify-install-path, r=alexcrichton
Browse files Browse the repository at this point in the history
Clarify docs of install without <crate>

This is an attempt to clarify the documentation of `install` without `<crate>`. I found it confusing trying to determine to which behavior “this” referred as well as whether “supported” meant “maintained” or “worked.”
  • Loading branch information
bors committed Apr 5, 2019
2 parents 6f3e9c3 + 3ed4ad8 commit b08e4cb
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/bin/cargo/commands/install.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,8 @@ enables overwriting existing binaries. Thus you can reinstall a crate with
`cargo install --force <crate>`.
Omitting the <crate> specification entirely will install the crate in the
current directory. That is, `install` is equivalent to the more explicit
`install --path .`. This behaviour is deprecated, and no longer supported as
of the Rust 2018 edition.
current directory. This behaviour is deprecated, and it no longer works in the
Rust 2018 edition. Use the more explicit `install --path .` instead.
If the source is crates.io or `--git` then by default the crate will be built
in a temporary target directory. To avoid this, the target directory can be
Expand Down

0 comments on commit b08e4cb

Please sign in to comment.