mirror of
https://github.com/rust-lang/cargo.git
synced 2025-09-25 11:14:46 +00:00
Fix errors in cargo fetch
usage guide
Co-authored-by: Caleb Maclennan <caleb@alerque.com>
This commit is contained in:
parent
ea2a21c994
commit
08734a6643
@ -1,5 +1,6 @@
|
||||
# cargo-fetch(1)
|
||||
{{*set actionverb="Fetch"}}
|
||||
{{*set target-default-to-all-arch=true}}
|
||||
|
||||
## NAME
|
||||
|
||||
@ -13,7 +14,7 @@ cargo-fetch - Fetch dependencies of a package from the network
|
||||
|
||||
If a `Cargo.lock` file is available, this command will ensure that all of the
|
||||
git dependencies and/or registry dependencies are downloaded and locally
|
||||
available. Subsequent Cargo commands never touch the network after a `cargo
|
||||
available. Subsequent Cargo commands will be able to run offline after a `cargo
|
||||
fetch` unless the lock file changes.
|
||||
|
||||
If the lock file is not available, then this command will generate the lock
|
||||
|
@ -9,7 +9,7 @@ SYNOPSIS
|
||||
DESCRIPTION
|
||||
If a Cargo.lock file is available, this command will ensure that all of
|
||||
the git dependencies and/or registry dependencies are downloaded and
|
||||
locally available. Subsequent Cargo commands never touch the network
|
||||
locally available. Subsequent Cargo commands will be able to run offline
|
||||
after a cargo fetch unless the lock file changes.
|
||||
|
||||
If the lock file is not available, then this command will generate the
|
||||
@ -25,8 +25,8 @@ DESCRIPTION
|
||||
OPTIONS
|
||||
Fetch options
|
||||
--target triple
|
||||
Fetch for the given architecture. The default is the host
|
||||
architecture. The general format of the triple is
|
||||
Fetch for the given architecture. The default is all architectures.
|
||||
The general format of the triple is
|
||||
<arch><sub>-<vendor>-<sys>-<abi>. Run rustc --print target-list for
|
||||
a list of supported targets.
|
||||
|
||||
|
@ -1,6 +1,8 @@
|
||||
{{#option "`--target` _triple_"}}
|
||||
{{actionverb}} for the given architecture. The default is the host
|
||||
architecture. The general format of the triple is
|
||||
{{actionverb}} for the given architecture.
|
||||
{{~#if target-default-to-all-arch}} The default is all architectures.
|
||||
{{~else}} The default is the host architecture.
|
||||
{{~/if}} The general format of the triple is
|
||||
`<arch><sub>-<vendor>-<sys>-<abi>`. Run `rustc --print target-list` for a
|
||||
list of supported targets.
|
||||
|
||||
|
@ -241,8 +241,7 @@ be specified multiple times, which enables all specified features.</dd>
|
||||
<dl>
|
||||
|
||||
<dt class="option-term" id="option-cargo-bench---target"><a class="option-anchor" href="#option-cargo-bench---target"></a><code>--target</code> <em>triple</em></dt>
|
||||
<dd class="option-desc">Benchmark for the given architecture. The default is the host
|
||||
architecture. The general format of the triple is
|
||||
<dd class="option-desc">Benchmark for the given architecture. The default is the host architecture. The general format of the triple is
|
||||
<code><arch><sub>-<vendor>-<sys>-<abi></code>. Run <code>rustc --print target-list</code> for a
|
||||
list of supported targets.</p>
|
||||
<p>This may also be specified with the <code>build.target</code>
|
||||
|
@ -169,8 +169,7 @@ be specified multiple times, which enables all specified features.</dd>
|
||||
<dl>
|
||||
|
||||
<dt class="option-term" id="option-cargo-build---target"><a class="option-anchor" href="#option-cargo-build---target"></a><code>--target</code> <em>triple</em></dt>
|
||||
<dd class="option-desc">Build for the given architecture. The default is the host
|
||||
architecture. The general format of the triple is
|
||||
<dd class="option-desc">Build for the given architecture. The default is the host architecture. The general format of the triple is
|
||||
<code><arch><sub>-<vendor>-<sys>-<abi></code>. Run <code>rustc --print target-list</code> for a
|
||||
list of supported targets.</p>
|
||||
<p>This may also be specified with the <code>build.target</code>
|
||||
|
@ -174,8 +174,7 @@ be specified multiple times, which enables all specified features.</dd>
|
||||
<dl>
|
||||
|
||||
<dt class="option-term" id="option-cargo-check---target"><a class="option-anchor" href="#option-cargo-check---target"></a><code>--target</code> <em>triple</em></dt>
|
||||
<dd class="option-desc">Check for the given architecture. The default is the host
|
||||
architecture. The general format of the triple is
|
||||
<dd class="option-desc">Check for the given architecture. The default is the host architecture. The general format of the triple is
|
||||
<code><arch><sub>-<vendor>-<sys>-<abi></code>. Run <code>rustc --print target-list</code> for a
|
||||
list of supported targets.</p>
|
||||
<p>This may also be specified with the <code>build.target</code>
|
||||
|
@ -57,8 +57,7 @@ Defaults to <code>target</code> in the root of the workspace.</dd>
|
||||
|
||||
|
||||
<dt class="option-term" id="option-cargo-clean---target"><a class="option-anchor" href="#option-cargo-clean---target"></a><code>--target</code> <em>triple</em></dt>
|
||||
<dd class="option-desc">Clean for the given architecture. The default is the host
|
||||
architecture. The general format of the triple is
|
||||
<dd class="option-desc">Clean for the given architecture. The default is the host architecture. The general format of the triple is
|
||||
<code><arch><sub>-<vendor>-<sys>-<abi></code>. Run <code>rustc --print target-list</code> for a
|
||||
list of supported targets.</p>
|
||||
<p>This may also be specified with the <code>build.target</code>
|
||||
|
@ -152,8 +152,7 @@ be specified multiple times, which enables all specified features.</dd>
|
||||
<dl>
|
||||
|
||||
<dt class="option-term" id="option-cargo-doc---target"><a class="option-anchor" href="#option-cargo-doc---target"></a><code>--target</code> <em>triple</em></dt>
|
||||
<dd class="option-desc">Document for the given architecture. The default is the host
|
||||
architecture. The general format of the triple is
|
||||
<dd class="option-desc">Document for the given architecture. The default is the host architecture. The general format of the triple is
|
||||
<code><arch><sub>-<vendor>-<sys>-<abi></code>. Run <code>rustc --print target-list</code> for a
|
||||
list of supported targets.</p>
|
||||
<p>This may also be specified with the <code>build.target</code>
|
||||
|
@ -1,6 +1,7 @@
|
||||
# cargo-fetch(1)
|
||||
|
||||
|
||||
|
||||
## NAME
|
||||
|
||||
cargo-fetch - Fetch dependencies of a package from the network
|
||||
@ -13,7 +14,7 @@ cargo-fetch - Fetch dependencies of a package from the network
|
||||
|
||||
If a `Cargo.lock` file is available, this command will ensure that all of the
|
||||
git dependencies and/or registry dependencies are downloaded and locally
|
||||
available. Subsequent Cargo commands never touch the network after a `cargo
|
||||
available. Subsequent Cargo commands will be able to run offline after a `cargo
|
||||
fetch` unless the lock file changes.
|
||||
|
||||
If the lock file is not available, then this command will generate the lock
|
||||
@ -31,8 +32,7 @@ you plan to use Cargo without a network with the `--offline` flag.
|
||||
|
||||
<dl>
|
||||
<dt class="option-term" id="option-cargo-fetch---target"><a class="option-anchor" href="#option-cargo-fetch---target"></a><code>--target</code> <em>triple</em></dt>
|
||||
<dd class="option-desc">Fetch for the given architecture. The default is the host
|
||||
architecture. The general format of the triple is
|
||||
<dd class="option-desc">Fetch for the given architecture. The default is all architectures. The general format of the triple is
|
||||
<code><arch><sub>-<vendor>-<sys>-<abi></code>. Run <code>rustc --print target-list</code> for a
|
||||
list of supported targets.</p>
|
||||
<p>This may also be specified with the <code>build.target</code>
|
||||
|
@ -254,8 +254,7 @@ be specified multiple times, which enables all specified features.</dd>
|
||||
<dl>
|
||||
|
||||
<dt class="option-term" id="option-cargo-fix---target"><a class="option-anchor" href="#option-cargo-fix---target"></a><code>--target</code> <em>triple</em></dt>
|
||||
<dd class="option-desc">Fix for the given architecture. The default is the host
|
||||
architecture. The general format of the triple is
|
||||
<dd class="option-desc">Fix for the given architecture. The default is the host architecture. The general format of the triple is
|
||||
<code><arch><sub>-<vendor>-<sys>-<abi></code>. Run <code>rustc --print target-list</code> for a
|
||||
list of supported targets.</p>
|
||||
<p>This may also be specified with the <code>build.target</code>
|
||||
|
@ -201,8 +201,7 @@ be specified multiple times, which enables all specified features.</dd>
|
||||
<dl>
|
||||
|
||||
<dt class="option-term" id="option-cargo-install---target"><a class="option-anchor" href="#option-cargo-install---target"></a><code>--target</code> <em>triple</em></dt>
|
||||
<dd class="option-desc">Install for the given architecture. The default is the host
|
||||
architecture. The general format of the triple is
|
||||
<dd class="option-desc">Install for the given architecture. The default is the host architecture. The general format of the triple is
|
||||
<code><arch><sub>-<vendor>-<sys>-<abi></code>. Run <code>rustc --print target-list</code> for a
|
||||
list of supported targets.</p>
|
||||
<p>This may also be specified with the <code>build.target</code>
|
||||
|
@ -131,8 +131,7 @@ single quotes or double quotes around each pattern.</dd>
|
||||
<dl>
|
||||
|
||||
<dt class="option-term" id="option-cargo-package---target"><a class="option-anchor" href="#option-cargo-package---target"></a><code>--target</code> <em>triple</em></dt>
|
||||
<dd class="option-desc">Package for the given architecture. The default is the host
|
||||
architecture. The general format of the triple is
|
||||
<dd class="option-desc">Package for the given architecture. The default is the host architecture. The general format of the triple is
|
||||
<code><arch><sub>-<vendor>-<sys>-<abi></code>. Run <code>rustc --print target-list</code> for a
|
||||
list of supported targets.</p>
|
||||
<p>This may also be specified with the <code>build.target</code>
|
||||
|
@ -97,8 +97,7 @@ format.</dd>
|
||||
<dl>
|
||||
|
||||
<dt class="option-term" id="option-cargo-publish---target"><a class="option-anchor" href="#option-cargo-publish---target"></a><code>--target</code> <em>triple</em></dt>
|
||||
<dd class="option-desc">Publish for the given architecture. The default is the host
|
||||
architecture. The general format of the triple is
|
||||
<dd class="option-desc">Publish for the given architecture. The default is the host architecture. The general format of the triple is
|
||||
<code><arch><sub>-<vendor>-<sys>-<abi></code>. Run <code>rustc --print target-list</code> for a
|
||||
list of supported targets.</p>
|
||||
<p>This may also be specified with the <code>build.target</code>
|
||||
|
@ -87,8 +87,7 @@ be specified multiple times, which enables all specified features.</dd>
|
||||
<dl>
|
||||
|
||||
<dt class="option-term" id="option-cargo-run---target"><a class="option-anchor" href="#option-cargo-run---target"></a><code>--target</code> <em>triple</em></dt>
|
||||
<dd class="option-desc">Run for the given architecture. The default is the host
|
||||
architecture. The general format of the triple is
|
||||
<dd class="option-desc">Run for the given architecture. The default is the host architecture. The general format of the triple is
|
||||
<code><arch><sub>-<vendor>-<sys>-<abi></code>. Run <code>rustc --print target-list</code> for a
|
||||
list of supported targets.</p>
|
||||
<p>This may also be specified with the <code>build.target</code>
|
||||
|
@ -156,8 +156,7 @@ be specified multiple times, which enables all specified features.</dd>
|
||||
<dl>
|
||||
|
||||
<dt class="option-term" id="option-cargo-rustc---target"><a class="option-anchor" href="#option-cargo-rustc---target"></a><code>--target</code> <em>triple</em></dt>
|
||||
<dd class="option-desc">Build for the given architecture. The default is the host
|
||||
architecture. The general format of the triple is
|
||||
<dd class="option-desc">Build for the given architecture. The default is the host architecture. The general format of the triple is
|
||||
<code><arch><sub>-<vendor>-<sys>-<abi></code>. Run <code>rustc --print target-list</code> for a
|
||||
list of supported targets.</p>
|
||||
<p>This may also be specified with the <code>build.target</code>
|
||||
|
@ -171,8 +171,7 @@ be specified multiple times, which enables all specified features.</dd>
|
||||
<dl>
|
||||
|
||||
<dt class="option-term" id="option-cargo-rustdoc---target"><a class="option-anchor" href="#option-cargo-rustdoc---target"></a><code>--target</code> <em>triple</em></dt>
|
||||
<dd class="option-desc">Document for the given architecture. The default is the host
|
||||
architecture. The general format of the triple is
|
||||
<dd class="option-desc">Document for the given architecture. The default is the host architecture. The general format of the triple is
|
||||
<code><arch><sub>-<vendor>-<sys>-<abi></code>. Run <code>rustc --print target-list</code> for a
|
||||
list of supported targets.</p>
|
||||
<p>This may also be specified with the <code>build.target</code>
|
||||
|
@ -250,8 +250,7 @@ be specified multiple times, which enables all specified features.</dd>
|
||||
<dl>
|
||||
|
||||
<dt class="option-term" id="option-cargo-test---target"><a class="option-anchor" href="#option-cargo-test---target"></a><code>--target</code> <em>triple</em></dt>
|
||||
<dd class="option-desc">Test for the given architecture. The default is the host
|
||||
architecture. The general format of the triple is
|
||||
<dd class="option-desc">Test for the given architecture. The default is the host architecture. The general format of the triple is
|
||||
<code><arch><sub>-<vendor>-<sys>-<abi></code>. Run <code>rustc --print target-list</code> for a
|
||||
list of supported targets.</p>
|
||||
<p>This may also be specified with the <code>build.target</code>
|
||||
|
@ -244,8 +244,7 @@ Do not activate the \fBdefault\fR feature of the selected packages.
|
||||
.sp
|
||||
\fB\-\-target\fR \fItriple\fR
|
||||
.RS 4
|
||||
Benchmark for the given architecture. The default is the host
|
||||
architecture. The general format of the triple is
|
||||
Benchmark for the given architecture. The default is the host architecture. The general format of the triple is
|
||||
\fB<arch><sub>\-<vendor>\-<sys>\-<abi>\fR\&. Run \fBrustc \-\-print target\-list\fR for a
|
||||
list of supported targets.
|
||||
.sp
|
||||
|
@ -156,8 +156,7 @@ Do not activate the \fBdefault\fR feature of the selected packages.
|
||||
.sp
|
||||
\fB\-\-target\fR \fItriple\fR
|
||||
.RS 4
|
||||
Build for the given architecture. The default is the host
|
||||
architecture. The general format of the triple is
|
||||
Build for the given architecture. The default is the host architecture. The general format of the triple is
|
||||
\fB<arch><sub>\-<vendor>\-<sys>\-<abi>\fR\&. Run \fBrustc \-\-print target\-list\fR for a
|
||||
list of supported targets.
|
||||
.sp
|
||||
|
@ -161,8 +161,7 @@ Do not activate the \fBdefault\fR feature of the selected packages.
|
||||
.sp
|
||||
\fB\-\-target\fR \fItriple\fR
|
||||
.RS 4
|
||||
Check for the given architecture. The default is the host
|
||||
architecture. The general format of the triple is
|
||||
Check for the given architecture. The default is the host architecture. The general format of the triple is
|
||||
\fB<arch><sub>\-<vendor>\-<sys>\-<abi>\fR\&. Run \fBrustc \-\-print target\-list\fR for a
|
||||
list of supported targets.
|
||||
.sp
|
||||
|
@ -51,8 +51,7 @@ Defaults to \fBtarget\fR in the root of the workspace.
|
||||
.sp
|
||||
\fB\-\-target\fR \fItriple\fR
|
||||
.RS 4
|
||||
Clean for the given architecture. The default is the host
|
||||
architecture. The general format of the triple is
|
||||
Clean for the given architecture. The default is the host architecture. The general format of the triple is
|
||||
\fB<arch><sub>\-<vendor>\-<sys>\-<abi>\fR\&. Run \fBrustc \-\-print target\-list\fR for a
|
||||
list of supported targets.
|
||||
.sp
|
||||
|
@ -134,8 +134,7 @@ Do not activate the \fBdefault\fR feature of the selected packages.
|
||||
.sp
|
||||
\fB\-\-target\fR \fItriple\fR
|
||||
.RS 4
|
||||
Document for the given architecture. The default is the host
|
||||
architecture. The general format of the triple is
|
||||
Document for the given architecture. The default is the host architecture. The general format of the triple is
|
||||
\fB<arch><sub>\-<vendor>\-<sys>\-<abi>\fR\&. Run \fBrustc \-\-print target\-list\fR for a
|
||||
list of supported targets.
|
||||
.sp
|
||||
|
@ -10,7 +10,7 @@ cargo\-fetch \- Fetch dependencies of a package from the network
|
||||
.SH "DESCRIPTION"
|
||||
If a \fBCargo.lock\fR file is available, this command will ensure that all of the
|
||||
git dependencies and/or registry dependencies are downloaded and locally
|
||||
available. Subsequent Cargo commands never touch the network after a \fBcargo fetch\fR unless the lock file changes.
|
||||
available. Subsequent Cargo commands will be able to run offline after a \fBcargo fetch\fR unless the lock file changes.
|
||||
.sp
|
||||
If the lock file is not available, then this command will generate the lock
|
||||
file before fetching the dependencies.
|
||||
@ -25,8 +25,7 @@ you plan to use Cargo without a network with the \fB\-\-offline\fR flag.
|
||||
.sp
|
||||
\fB\-\-target\fR \fItriple\fR
|
||||
.RS 4
|
||||
Fetch for the given architecture. The default is the host
|
||||
architecture. The general format of the triple is
|
||||
Fetch for the given architecture. The default is all architectures. The general format of the triple is
|
||||
\fB<arch><sub>\-<vendor>\-<sys>\-<abi>\fR\&. Run \fBrustc \-\-print target\-list\fR for a
|
||||
list of supported targets.
|
||||
.sp
|
||||
|
@ -256,8 +256,7 @@ Do not activate the \fBdefault\fR feature of the selected packages.
|
||||
.sp
|
||||
\fB\-\-target\fR \fItriple\fR
|
||||
.RS 4
|
||||
Fix for the given architecture. The default is the host
|
||||
architecture. The general format of the triple is
|
||||
Fix for the given architecture. The default is the host architecture. The general format of the triple is
|
||||
\fB<arch><sub>\-<vendor>\-<sys>\-<abi>\fR\&. Run \fBrustc \-\-print target\-list\fR for a
|
||||
list of supported targets.
|
||||
.sp
|
||||
|
@ -229,8 +229,7 @@ Do not activate the \fBdefault\fR feature of the selected packages.
|
||||
.sp
|
||||
\fB\-\-target\fR \fItriple\fR
|
||||
.RS 4
|
||||
Install for the given architecture. The default is the host
|
||||
architecture. The general format of the triple is
|
||||
Install for the given architecture. The default is the host architecture. The general format of the triple is
|
||||
\fB<arch><sub>\-<vendor>\-<sys>\-<abi>\fR\&. Run \fBrustc \-\-print target\-list\fR for a
|
||||
list of supported targets.
|
||||
.sp
|
||||
|
@ -146,8 +146,7 @@ single quotes or double quotes around each pattern.
|
||||
.sp
|
||||
\fB\-\-target\fR \fItriple\fR
|
||||
.RS 4
|
||||
Package for the given architecture. The default is the host
|
||||
architecture. The general format of the triple is
|
||||
Package for the given architecture. The default is the host architecture. The general format of the triple is
|
||||
\fB<arch><sub>\-<vendor>\-<sys>\-<abi>\fR\&. Run \fBrustc \-\-print target\-list\fR for a
|
||||
list of supported targets.
|
||||
.sp
|
||||
|
@ -96,8 +96,7 @@ format.
|
||||
.sp
|
||||
\fB\-\-target\fR \fItriple\fR
|
||||
.RS 4
|
||||
Publish for the given architecture. The default is the host
|
||||
architecture. The general format of the triple is
|
||||
Publish for the given architecture. The default is the host architecture. The general format of the triple is
|
||||
\fB<arch><sub>\-<vendor>\-<sys>\-<abi>\fR\&. Run \fBrustc \-\-print target\-list\fR for a
|
||||
list of supported targets.
|
||||
.sp
|
||||
|
@ -67,8 +67,7 @@ Do not activate the \fBdefault\fR feature of the selected packages.
|
||||
.sp
|
||||
\fB\-\-target\fR \fItriple\fR
|
||||
.RS 4
|
||||
Run for the given architecture. The default is the host
|
||||
architecture. The general format of the triple is
|
||||
Run for the given architecture. The default is the host architecture. The general format of the triple is
|
||||
\fB<arch><sub>\-<vendor>\-<sys>\-<abi>\fR\&. Run \fBrustc \-\-print target\-list\fR for a
|
||||
list of supported targets.
|
||||
.sp
|
||||
|
@ -142,8 +142,7 @@ Do not activate the \fBdefault\fR feature of the selected packages.
|
||||
.sp
|
||||
\fB\-\-target\fR \fItriple\fR
|
||||
.RS 4
|
||||
Build for the given architecture. The default is the host
|
||||
architecture. The general format of the triple is
|
||||
Build for the given architecture. The default is the host architecture. The general format of the triple is
|
||||
\fB<arch><sub>\-<vendor>\-<sys>\-<abi>\fR\&. Run \fBrustc \-\-print target\-list\fR for a
|
||||
list of supported targets.
|
||||
.sp
|
||||
|
@ -153,8 +153,7 @@ Do not activate the \fBdefault\fR feature of the selected packages.
|
||||
.sp
|
||||
\fB\-\-target\fR \fItriple\fR
|
||||
.RS 4
|
||||
Document for the given architecture. The default is the host
|
||||
architecture. The general format of the triple is
|
||||
Document for the given architecture. The default is the host architecture. The general format of the triple is
|
||||
\fB<arch><sub>\-<vendor>\-<sys>\-<abi>\fR\&. Run \fBrustc \-\-print target\-list\fR for a
|
||||
list of supported targets.
|
||||
.sp
|
||||
|
@ -253,8 +253,7 @@ Do not activate the \fBdefault\fR feature of the selected packages.
|
||||
.sp
|
||||
\fB\-\-target\fR \fItriple\fR
|
||||
.RS 4
|
||||
Test for the given architecture. The default is the host
|
||||
architecture. The general format of the triple is
|
||||
Test for the given architecture. The default is the host architecture. The general format of the triple is
|
||||
\fB<arch><sub>\-<vendor>\-<sys>\-<abi>\fR\&. Run \fBrustc \-\-print target\-list\fR for a
|
||||
list of supported targets.
|
||||
.sp
|
||||
|
Loading…
x
Reference in New Issue
Block a user