From: bors Date: Fri, 22 Dec 2017 16:55:35 +0000 (+0000) Subject: Auto merge of #4852 - jtgeibel:cargo-install-target-dir, r=alexcrichton X-Git-Tag: archive/raspbian/0.35.0-2+rpi1~3^2^2^2^2^2^2^2~22^2~4^2~7 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=83912a083ea3111fc2294dfea87bae5f4687a4a2;p=cargo.git Auto merge of #4852 - jtgeibel:cargo-install-target-dir, r=alexcrichton Always respect `CARGO_TARGET_DIR` during `cargo install` This aligns the behavior of crates.io and `--git` sources with that of `--path` regarding the `CARGO_TARGET_DIR` and `CARGO_BUILD_TARGET_DIR` environment variables. If neither environment variable is set, then a temporary directory is still used when installing from crates.io or `--git`. As discussed in #4725, this can be used to enable caching of artifacts between continuous integration builds. /cc @alexcrichton, @ishanjain28 --- 83912a083ea3111fc2294dfea87bae5f4687a4a2