From a70629235267abdb65eefa56ed1d1ea205224fb2 Mon Sep 17 00:00:00 2001
From: Weihang Lo
Date: Sat, 20 Feb 2021 11:33:23 +0800
Subject: [PATCH] doc: generated by build-man.sh
---
src/doc/man/generated_txt/cargo-install.txt | 3 +++
src/doc/src/commands/cargo-install.md | 5 ++++-
src/etc/man/cargo-install.1 | 6 +++++-
3 files changed, 12 insertions(+), 2 deletions(-)
diff --git a/src/doc/man/generated_txt/cargo-install.txt b/src/doc/man/generated_txt/cargo-install.txt
index 771849288..ce009c0cb 100644
--- a/src/doc/man/generated_txt/cargo-install.txt
+++ b/src/doc/man/generated_txt/cargo-install.txt
@@ -193,6 +193,9 @@ OPTIONS
a new temporary folder located in the temporary directory of the
platform.
+ When using --path, by default it will use target directory in the
+ workspace of the local crate unless --target-dir is specified.
+
--debug
Build with the dev profile instead the release profile.
diff --git a/src/doc/src/commands/cargo-install.md b/src/doc/src/commands/cargo-install.md
index 03f8fa00d..1639b28cb 100644
--- a/src/doc/src/commands/cargo-install.md
+++ b/src/doc/src/commands/cargo-install.md
@@ -218,7 +218,10 @@ target artifacts are placed in a separate directory. See the
specified with the CARGO_TARGET_DIR
environment variable, or the
build.target-dir
config value.
Defaults to a new temporary folder located in the
-temporary directory of the platform.
+temporary directory of the platform.
+When using --path
, by default it will use target
directory in the workspace
+of the local crate unless --target-dir
+is specified.
diff --git a/src/etc/man/cargo-install.1 b/src/etc/man/cargo-install.1
index 4d4407e71..1840182a2 100644
--- a/src/etc/man/cargo-install.1
+++ b/src/etc/man/cargo-install.1
@@ -248,7 +248,11 @@ Directory for all generated artifacts and intermediate files. May also be
specified with the \fBCARGO_TARGET_DIR\fR environment variable, or the
\fBbuild.target\-dir\fR \fIconfig value\fR \&.
Defaults to a new temporary folder located in the
-temporary directory of the platform.
+temporary directory of the platform.
+.sp
+When using \fB\-\-path\fR, by default it will use \fBtarget\fR directory in the workspace
+of the local crate unless \fB\-\-target\-dir\fR
+is specified.
.RE
.sp
\fB\-\-debug\fR