Skip to content

Commit

Permalink
Mk/Uses/cargo.mk: Fix install for Rust 2018 edition applications
Browse files Browse the repository at this point in the history
`cargo install` currently fails with:

error: Using `cargo install` to install the binaries for the package
in current working directory is no longer supported, use `cargo
install --path .` instead.

Also see rust-lang/cargo#5327


git-svn-id: svn+ssh://svn.freebsd.org/ports/head@487583 35697150-7ecd-e111-bb59-0022644237b5
  • Loading branch information
Tobias Kortkamp authored and Tobias Kortkamp committed Dec 16, 2018
1 parent 47cd4ed commit 7400e92
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Mk/Uses/cargo.mk
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,7 @@ do-build:
.if !target(do-install) && ${CARGO_INSTALL:tl} == "yes"
do-install:
@${CARGO_CARGO_RUN} install \
--path . \
--root "${STAGEDIR}${PREFIX}" \
--verbose \
${CARGO_INSTALL_ARGS}
Expand Down

0 comments on commit 7400e92

Please sign in to comment.