diff options
Diffstat (limited to 'src/tools/cargo/src/etc')
-rw-r--r-- | src/tools/cargo/src/etc/man/cargo-bench.1 | 3 | ||||
-rw-r--r-- | src/tools/cargo/src/etc/man/cargo-build.1 | 3 | ||||
-rw-r--r-- | src/tools/cargo/src/etc/man/cargo-check.1 | 3 | ||||
-rw-r--r-- | src/tools/cargo/src/etc/man/cargo-doc.1 | 3 | ||||
-rw-r--r-- | src/tools/cargo/src/etc/man/cargo-fix.1 | 3 | ||||
-rw-r--r-- | src/tools/cargo/src/etc/man/cargo-install.1 | 7 | ||||
-rw-r--r-- | src/tools/cargo/src/etc/man/cargo-package.1 | 3 | ||||
-rw-r--r-- | src/tools/cargo/src/etc/man/cargo-publish.1 | 3 | ||||
-rw-r--r-- | src/tools/cargo/src/etc/man/cargo-run.1 | 3 | ||||
-rw-r--r-- | src/tools/cargo/src/etc/man/cargo-rustc.1 | 3 | ||||
-rw-r--r-- | src/tools/cargo/src/etc/man/cargo-rustdoc.1 | 3 | ||||
-rw-r--r-- | src/tools/cargo/src/etc/man/cargo-test.1 | 16 |
12 files changed, 36 insertions, 17 deletions
diff --git a/src/tools/cargo/src/etc/man/cargo-bench.1 b/src/tools/cargo/src/etc/man/cargo-bench.1 index 44ff593fd..993dd3415 100644 --- a/src/tools/cargo/src/etc/man/cargo-bench.1 +++ b/src/tools/cargo/src/etc/man/cargo-bench.1 @@ -497,7 +497,8 @@ Rust test harness runs benchmarks serially in a single thread. Number of parallel jobs to run. May also be specified with the \fBbuild.jobs\fR \fIconfig value\fR <https://doc.rust\-lang.org/cargo/reference/config.html>\&. Defaults to the number of logical CPUs. If negative, it sets the maximum number of -parallel jobs to the number of logical CPUs plus provided value. +parallel jobs to the number of logical CPUs plus provided value. If +a string \fBdefault\fR is provided, it sets the value back to defaults. Should not be 0. .RE .sp diff --git a/src/tools/cargo/src/etc/man/cargo-build.1 b/src/tools/cargo/src/etc/man/cargo-build.1 index 80ae4ac90..4ee6a0d76 100644 --- a/src/tools/cargo/src/etc/man/cargo-build.1 +++ b/src/tools/cargo/src/etc/man/cargo-build.1 @@ -412,7 +412,8 @@ Unstable (nightly\-only) flags to Cargo. Run \fBcargo \-Z help\fR for details. Number of parallel jobs to run. May also be specified with the \fBbuild.jobs\fR \fIconfig value\fR <https://doc.rust\-lang.org/cargo/reference/config.html>\&. Defaults to the number of logical CPUs. If negative, it sets the maximum number of -parallel jobs to the number of logical CPUs plus provided value. +parallel jobs to the number of logical CPUs plus provided value. If +a string \fBdefault\fR is provided, it sets the value back to defaults. Should not be 0. .RE .sp diff --git a/src/tools/cargo/src/etc/man/cargo-check.1 b/src/tools/cargo/src/etc/man/cargo-check.1 index cf7a66d89..1aada2a21 100644 --- a/src/tools/cargo/src/etc/man/cargo-check.1 +++ b/src/tools/cargo/src/etc/man/cargo-check.1 @@ -393,7 +393,8 @@ Unstable (nightly\-only) flags to Cargo. Run \fBcargo \-Z help\fR for details. Number of parallel jobs to run. May also be specified with the \fBbuild.jobs\fR \fIconfig value\fR <https://doc.rust\-lang.org/cargo/reference/config.html>\&. Defaults to the number of logical CPUs. If negative, it sets the maximum number of -parallel jobs to the number of logical CPUs plus provided value. +parallel jobs to the number of logical CPUs plus provided value. If +a string \fBdefault\fR is provided, it sets the value back to defaults. Should not be 0. .RE .sp diff --git a/src/tools/cargo/src/etc/man/cargo-doc.1 b/src/tools/cargo/src/etc/man/cargo-doc.1 index 63ce2a050..24621e9f6 100644 --- a/src/tools/cargo/src/etc/man/cargo-doc.1 +++ b/src/tools/cargo/src/etc/man/cargo-doc.1 @@ -360,7 +360,8 @@ Unstable (nightly\-only) flags to Cargo. Run \fBcargo \-Z help\fR for details. Number of parallel jobs to run. May also be specified with the \fBbuild.jobs\fR \fIconfig value\fR <https://doc.rust\-lang.org/cargo/reference/config.html>\&. Defaults to the number of logical CPUs. If negative, it sets the maximum number of -parallel jobs to the number of logical CPUs plus provided value. +parallel jobs to the number of logical CPUs plus provided value. If +a string \fBdefault\fR is provided, it sets the value back to defaults. Should not be 0. .RE .sp diff --git a/src/tools/cargo/src/etc/man/cargo-fix.1 b/src/tools/cargo/src/etc/man/cargo-fix.1 index 51b1e3fd6..7f2a34cda 100644 --- a/src/tools/cargo/src/etc/man/cargo-fix.1 +++ b/src/tools/cargo/src/etc/man/cargo-fix.1 @@ -488,7 +488,8 @@ Unstable (nightly\-only) flags to Cargo. Run \fBcargo \-Z help\fR for details. Number of parallel jobs to run. May also be specified with the \fBbuild.jobs\fR \fIconfig value\fR <https://doc.rust\-lang.org/cargo/reference/config.html>\&. Defaults to the number of logical CPUs. If negative, it sets the maximum number of -parallel jobs to the number of logical CPUs plus provided value. +parallel jobs to the number of logical CPUs plus provided value. If +a string \fBdefault\fR is provided, it sets the value back to defaults. Should not be 0. .RE .sp diff --git a/src/tools/cargo/src/etc/man/cargo-install.1 b/src/tools/cargo/src/etc/man/cargo-install.1 index a9eb6266b..917c0d0e1 100644 --- a/src/tools/cargo/src/etc/man/cargo-install.1 +++ b/src/tools/cargo/src/etc/man/cargo-install.1 @@ -17,7 +17,7 @@ cargo\-install \[em] Build and install a Rust binary This command manages Cargo\[cq]s local set of installed binary crates. Only packages which have executable \fB[[bin]]\fR or \fB[[example]]\fR targets can be installed, and all executables are installed into the installation root\[cq]s -\fBbin\fR folder. +\fBbin\fR folder. By default only binaries, not examples, are installed. .sp The installation root is determined, in order of precedence: .sp @@ -177,7 +177,7 @@ Install only the specified binary. .sp \fB\-\-bins\fR .RS 4 -Install all binaries. +Install all binaries. This is the default behavior. .RE .sp \fB\-\-example\fR \fIname\fR\[u2026] @@ -338,7 +338,8 @@ May also be specified with the \fBnet.offline\fR \fIconfig value\fR <https://doc Number of parallel jobs to run. May also be specified with the \fBbuild.jobs\fR \fIconfig value\fR <https://doc.rust\-lang.org/cargo/reference/config.html>\&. Defaults to the number of logical CPUs. If negative, it sets the maximum number of -parallel jobs to the number of logical CPUs plus provided value. +parallel jobs to the number of logical CPUs plus provided value. If +a string \fBdefault\fR is provided, it sets the value back to defaults. Should not be 0. .RE .sp diff --git a/src/tools/cargo/src/etc/man/cargo-package.1 b/src/tools/cargo/src/etc/man/cargo-package.1 index 9f4847d7d..8a7b1c191 100644 --- a/src/tools/cargo/src/etc/man/cargo-package.1 +++ b/src/tools/cargo/src/etc/man/cargo-package.1 @@ -234,7 +234,8 @@ May also be specified with the \fBnet.offline\fR \fIconfig value\fR <https://doc Number of parallel jobs to run. May also be specified with the \fBbuild.jobs\fR \fIconfig value\fR <https://doc.rust\-lang.org/cargo/reference/config.html>\&. Defaults to the number of logical CPUs. If negative, it sets the maximum number of -parallel jobs to the number of logical CPUs plus provided value. +parallel jobs to the number of logical CPUs plus provided value. If +a string \fBdefault\fR is provided, it sets the value back to defaults. Should not be 0. .RE .sp diff --git a/src/tools/cargo/src/etc/man/cargo-publish.1 b/src/tools/cargo/src/etc/man/cargo-publish.1 index a54a7bcda..d18f9e690 100644 --- a/src/tools/cargo/src/etc/man/cargo-publish.1 +++ b/src/tools/cargo/src/etc/man/cargo-publish.1 @@ -184,7 +184,8 @@ May also be specified with the \fBnet.offline\fR \fIconfig value\fR <https://doc Number of parallel jobs to run. May also be specified with the \fBbuild.jobs\fR \fIconfig value\fR <https://doc.rust\-lang.org/cargo/reference/config.html>\&. Defaults to the number of logical CPUs. If negative, it sets the maximum number of -parallel jobs to the number of logical CPUs plus provided value. +parallel jobs to the number of logical CPUs plus provided value. If +a string \fBdefault\fR is provided, it sets the value back to defaults. Should not be 0. .RE .sp diff --git a/src/tools/cargo/src/etc/man/cargo-run.1 b/src/tools/cargo/src/etc/man/cargo-run.1 index 7a85298cc..1c182ad1a 100644 --- a/src/tools/cargo/src/etc/man/cargo-run.1 +++ b/src/tools/cargo/src/etc/man/cargo-run.1 @@ -297,7 +297,8 @@ Unstable (nightly\-only) flags to Cargo. Run \fBcargo \-Z help\fR for details. Number of parallel jobs to run. May also be specified with the \fBbuild.jobs\fR \fIconfig value\fR <https://doc.rust\-lang.org/cargo/reference/config.html>\&. Defaults to the number of logical CPUs. If negative, it sets the maximum number of -parallel jobs to the number of logical CPUs plus provided value. +parallel jobs to the number of logical CPUs plus provided value. If +a string \fBdefault\fR is provided, it sets the value back to defaults. Should not be 0. .RE .sp diff --git a/src/tools/cargo/src/etc/man/cargo-rustc.1 b/src/tools/cargo/src/etc/man/cargo-rustc.1 index 6e901d9ec..50df99656 100644 --- a/src/tools/cargo/src/etc/man/cargo-rustc.1 +++ b/src/tools/cargo/src/etc/man/cargo-rustc.1 @@ -411,7 +411,8 @@ Unstable (nightly\-only) flags to Cargo. Run \fBcargo \-Z help\fR for details. Number of parallel jobs to run. May also be specified with the \fBbuild.jobs\fR \fIconfig value\fR <https://doc.rust\-lang.org/cargo/reference/config.html>\&. Defaults to the number of logical CPUs. If negative, it sets the maximum number of -parallel jobs to the number of logical CPUs plus provided value. +parallel jobs to the number of logical CPUs plus provided value. If +a string \fBdefault\fR is provided, it sets the value back to defaults. Should not be 0. .RE .sp diff --git a/src/tools/cargo/src/etc/man/cargo-rustdoc.1 b/src/tools/cargo/src/etc/man/cargo-rustdoc.1 index 0c9a0e74a..1792c6e2f 100644 --- a/src/tools/cargo/src/etc/man/cargo-rustdoc.1 +++ b/src/tools/cargo/src/etc/man/cargo-rustdoc.1 @@ -379,7 +379,8 @@ Unstable (nightly\-only) flags to Cargo. Run \fBcargo \-Z help\fR for details. Number of parallel jobs to run. May also be specified with the \fBbuild.jobs\fR \fIconfig value\fR <https://doc.rust\-lang.org/cargo/reference/config.html>\&. Defaults to the number of logical CPUs. If negative, it sets the maximum number of -parallel jobs to the number of logical CPUs plus provided value. +parallel jobs to the number of logical CPUs plus provided value. If +a string \fBdefault\fR is provided, it sets the value back to defaults. Should not be 0. .RE .sp diff --git a/src/tools/cargo/src/etc/man/cargo-test.1 b/src/tools/cargo/src/etc/man/cargo-test.1 index 1ee2f7672..802169815 100644 --- a/src/tools/cargo/src/etc/man/cargo-test.1 +++ b/src/tools/cargo/src/etc/man/cargo-test.1 @@ -54,11 +54,18 @@ and may change in the future; beware of depending on it. See the \fIrustdoc book\fR <https://doc.rust\-lang.org/rustdoc/> for more information on writing doc tests. .SS "Working directory of tests" -The working directory of every test is set to the root directory of the package -the test belongs to. -Setting the working directory of tests to the package\[cq]s root directory makes it +The working directory when running each unit and integration test is set to the +root directory of the package the test belongs to. +Setting the working directory of tests to the package\[cq]s root directory makes it possible for tests to reliably access the package\[cq]s files using relative paths, regardless from where \fBcargo test\fR was executed from. +.sp +For documentation tests, the working directory when invoking \fBrustdoc\fR is set to +the workspace root directory, and is also the directory \fBrustdoc\fR uses as the +compilation directory of each documentation test. +The working directory when running each documentation test is set to the root +directory of the package the test belongs to, and is controlled via \fBrustdoc\fR\[cq]s +\fB\-\-test\-run\-directory\fR option. .SH "OPTIONS" .SS "Test Options" .sp @@ -523,7 +530,8 @@ cargo test \-j 2 \-\- \-\-test\-threads=2 Number of parallel jobs to run. May also be specified with the \fBbuild.jobs\fR \fIconfig value\fR <https://doc.rust\-lang.org/cargo/reference/config.html>\&. Defaults to the number of logical CPUs. If negative, it sets the maximum number of -parallel jobs to the number of logical CPUs plus provided value. +parallel jobs to the number of logical CPUs plus provided value. If +a string \fBdefault\fR is provided, it sets the value back to defaults. Should not be 0. .RE .sp |