Skip to content

Commit

Permalink
Update for review comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
ehuss committed Feb 12, 2019
1 parent 737382d commit 902885c
Show file tree
Hide file tree
Showing 8 changed files with 49 additions and 28 deletions.
10 changes: 6 additions & 4 deletions src/doc/man/generated/cargo-owner.html
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,12 @@ <h3 id="cargo_owner_owner_options">Owner Options</h3>
<p>API token to use when authenticating. This overrides the token stored in
the credentials file (which is created by <a href="commands/cargo-login.html">cargo-login(1)</a>).</p>
<div class="paragraph">
<p>The token for crates.io may be specified with the <code>CARGO_REGISTRY_TOKEN</code>
environment variable. Tokens for other registries may be specified with
environment variables of the form <code>CARGO_REGISTRIES_NAME_TOKEN</code> where <code>NAME</code>
is the name of the registry in all capital letters.</p>
<p><a href="reference/config.html">Cargo config</a> environment variables can be
used to override the tokens stored in the credentials file. The token for
crates.io may be specified with the <code>CARGO_REGISTRY_TOKEN</code> environment
variable. Tokens for other registries may be specified with environment
variables of the form <code>CARGO_REGISTRIES_NAME_TOKEN</code> where <code>NAME</code> is the name
of the registry in all capital letters.</p>
</div>
</dd>
<dt class="hdlist1"><strong>--index</strong> <em>INDEX</em></dt>
Expand Down
10 changes: 6 additions & 4 deletions src/doc/man/generated/cargo-publish.html
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,12 @@ <h3 id="cargo_publish_publish_options">Publish Options</h3>
<p>API token to use when authenticating. This overrides the token stored in
the credentials file (which is created by <a href="commands/cargo-login.html">cargo-login(1)</a>).</p>
<div class="paragraph">
<p>The token for crates.io may be specified with the <code>CARGO_REGISTRY_TOKEN</code>
environment variable. Tokens for other registries may be specified with
environment variables of the form <code>CARGO_REGISTRIES_NAME_TOKEN</code> where <code>NAME</code>
is the name of the registry in all capital letters.</p>
<p><a href="reference/config.html">Cargo config</a> environment variables can be
used to override the tokens stored in the credentials file. The token for
crates.io may be specified with the <code>CARGO_REGISTRY_TOKEN</code> environment
variable. Tokens for other registries may be specified with environment
variables of the form <code>CARGO_REGISTRIES_NAME_TOKEN</code> where <code>NAME</code> is the name
of the registry in all capital letters.</p>
</div>
</dd>
<dt class="hdlist1"><strong>--no-verify</strong></dt>
Expand Down
10 changes: 6 additions & 4 deletions src/doc/man/generated/cargo-yank.html
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,12 @@ <h3 id="cargo_yank_owner_options">Owner Options</h3>
<p>API token to use when authenticating. This overrides the token stored in
the credentials file (which is created by <a href="commands/cargo-login.html">cargo-login(1)</a>).</p>
<div class="paragraph">
<p>The token for crates.io may be specified with the <code>CARGO_REGISTRY_TOKEN</code>
environment variable. Tokens for other registries may be specified with
environment variables of the form <code>CARGO_REGISTRIES_NAME_TOKEN</code> where <code>NAME</code>
is the name of the registry in all capital letters.</p>
<p><a href="reference/config.html">Cargo config</a> environment variables can be
used to override the tokens stored in the credentials file. The token for
crates.io may be specified with the <code>CARGO_REGISTRY_TOKEN</code> environment
variable. Tokens for other registries may be specified with environment
variables of the form <code>CARGO_REGISTRIES_NAME_TOKEN</code> where <code>NAME</code> is the name
of the registry in all capital letters.</p>
</div>
</dd>
<dt class="hdlist1"><strong>--index</strong> <em>INDEX</em></dt>
Expand Down
10 changes: 6 additions & 4 deletions src/doc/man/options-token.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
API token to use when authenticating. This overrides the token stored in
the credentials file (which is created by man:cargo-login[1]).
+
The token for crates.io may be specified with the `CARGO_REGISTRY_TOKEN`
environment variable. Tokens for other registries may be specified with
environment variables of the form `CARGO_REGISTRIES_NAME_TOKEN` where `NAME`
is the name of the registry in all capital letters.
linkcargo:reference/config.html[Cargo config] environment variables can be
used to override the tokens stored in the credentials file. The token for
crates.io may be specified with the `CARGO_REGISTRY_TOKEN` environment
variable. Tokens for other registries may be specified with environment
variables of the form `CARGO_REGISTRIES_NAME_TOKEN` where `NAME` is the name
of the registry in all capital letters.
4 changes: 4 additions & 0 deletions src/doc/src/reference/registries.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,10 @@ A full-featured registry that supports publishing will additionally need to
have a web API service that conforms to the API used by Cargo. The web API is
documented below.

At this time, there is no widely used software for running a custom registry.
There is interest in documenting projects that implement registry support, or
existing package caches that add support for Cargo.

### Index Format

The following defines the format of the index. New features are occasionally
Expand Down
11 changes: 7 additions & 4 deletions src/etc/man/cargo-owner.1
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,13 @@ List owners of a crate.
API token to use when authenticating. This overrides the token stored in
the credentials file (which is created by \fBcargo\-login\fP(1)).
.sp
The token for crates.io may be specified with the \fBCARGO_REGISTRY_TOKEN\fP
environment variable. Tokens for other registries may be specified with
environment variables of the form \fBCARGO_REGISTRIES_NAME_TOKEN\fP where \fBNAME\fP
is the name of the registry in all capital letters.
.URL "https://doc.rust\-lang.org/cargo/reference/config.html" "Cargo config" " "
environment variables can be
used to override the tokens stored in the credentials file. The token for
crates.io may be specified with the \fBCARGO_REGISTRY_TOKEN\fP environment
variable. Tokens for other registries may be specified with environment
variables of the form \fBCARGO_REGISTRIES_NAME_TOKEN\fP where \fBNAME\fP is the name
of the registry in all capital letters.
.RE
.sp
\fB\-\-index\fP \fIINDEX\fP
Expand Down
11 changes: 7 additions & 4 deletions src/etc/man/cargo-publish.1
Original file line number Diff line number Diff line change
Expand Up @@ -118,10 +118,13 @@ Perform all checks without uploading.
API token to use when authenticating. This overrides the token stored in
the credentials file (which is created by \fBcargo\-login\fP(1)).
.sp
The token for crates.io may be specified with the \fBCARGO_REGISTRY_TOKEN\fP
environment variable. Tokens for other registries may be specified with
environment variables of the form \fBCARGO_REGISTRIES_NAME_TOKEN\fP where \fBNAME\fP
is the name of the registry in all capital letters.
.URL "https://doc.rust\-lang.org/cargo/reference/config.html" "Cargo config" " "
environment variables can be
used to override the tokens stored in the credentials file. The token for
crates.io may be specified with the \fBCARGO_REGISTRY_TOKEN\fP environment
variable. Tokens for other registries may be specified with environment
variables of the form \fBCARGO_REGISTRIES_NAME_TOKEN\fP where \fBNAME\fP is the name
of the registry in all capital letters.
.RE
.sp
\fB\-\-no\-verify\fP
Expand Down
11 changes: 7 additions & 4 deletions src/etc/man/cargo-yank.1
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,13 @@ Undo a yank, putting a version back into the index.
API token to use when authenticating. This overrides the token stored in
the credentials file (which is created by \fBcargo\-login\fP(1)).
.sp
The token for crates.io may be specified with the \fBCARGO_REGISTRY_TOKEN\fP
environment variable. Tokens for other registries may be specified with
environment variables of the form \fBCARGO_REGISTRIES_NAME_TOKEN\fP where \fBNAME\fP
is the name of the registry in all capital letters.
.URL "https://doc.rust\-lang.org/cargo/reference/config.html" "Cargo config" " "
environment variables can be
used to override the tokens stored in the credentials file. The token for
crates.io may be specified with the \fBCARGO_REGISTRY_TOKEN\fP environment
variable. Tokens for other registries may be specified with environment
variables of the form \fBCARGO_REGISTRIES_NAME_TOKEN\fP where \fBNAME\fP is the name
of the registry in all capital letters.
.RE
.sp
\fB\-\-index\fP \fIINDEX\fP
Expand Down

0 comments on commit 902885c

Please sign in to comment.