File tree Expand file tree Collapse file tree 8 files changed +49
-28
lines changed Expand file tree Collapse file tree 8 files changed +49
-28
lines changed Original file line number Diff line number Diff line change @@ -61,10 +61,12 @@ <h3 id="cargo_owner_owner_options">Owner Options</h3>
61
61
< p > API token to use when authenticating. This overrides the token stored in
62
62
the credentials file (which is created by < a href ="commands/cargo-login.html "> cargo-login(1)</ a > ).</ p >
63
63
< div class ="paragraph ">
64
- < p > The token for crates.io may be specified with the < code > CARGO_REGISTRY_TOKEN</ code >
65
- environment variable. Tokens for other registries may be specified with
66
- environment variables of the form < code > CARGO_REGISTRIES_NAME_TOKEN</ code > where < code > NAME</ code >
67
- is the name of the registry in all capital letters.</ p >
64
+ < p > < a href ="reference/config.html "> Cargo config</ a > environment variables can be
65
+ used to override the tokens stored in the credentials file. The token for
66
+ crates.io may be specified with the < code > CARGO_REGISTRY_TOKEN</ code > environment
67
+ variable. Tokens for other registries may be specified with environment
68
+ variables of the form < code > CARGO_REGISTRIES_NAME_TOKEN</ code > where < code > NAME</ code > is the name
69
+ of the registry in all capital letters.</ p >
68
70
</ div >
69
71
</ dd >
70
72
< dt class ="hdlist1 "> < strong > --index</ strong > < em > INDEX</ em > </ dt >
Original file line number Diff line number Diff line change @@ -70,10 +70,12 @@ <h3 id="cargo_publish_publish_options">Publish Options</h3>
70
70
< p > API token to use when authenticating. This overrides the token stored in
71
71
the credentials file (which is created by < a href ="commands/cargo-login.html "> cargo-login(1)</ a > ).</ p >
72
72
< div class ="paragraph ">
73
- < p > The token for crates.io may be specified with the < code > CARGO_REGISTRY_TOKEN</ code >
74
- environment variable. Tokens for other registries may be specified with
75
- environment variables of the form < code > CARGO_REGISTRIES_NAME_TOKEN</ code > where < code > NAME</ code >
76
- is the name of the registry in all capital letters.</ p >
73
+ < p > < a href ="reference/config.html "> Cargo config</ a > environment variables can be
74
+ used to override the tokens stored in the credentials file. The token for
75
+ crates.io may be specified with the < code > CARGO_REGISTRY_TOKEN</ code > environment
76
+ variable. Tokens for other registries may be specified with environment
77
+ variables of the form < code > CARGO_REGISTRIES_NAME_TOKEN</ code > where < code > NAME</ code > is the name
78
+ of the registry in all capital letters.</ p >
77
79
</ div >
78
80
</ dd >
79
81
< dt class ="hdlist1 "> < strong > --no-verify</ strong > </ dt >
Original file line number Diff line number Diff line change @@ -53,10 +53,12 @@ <h3 id="cargo_yank_owner_options">Owner Options</h3>
53
53
< p > API token to use when authenticating. This overrides the token stored in
54
54
the credentials file (which is created by < a href ="commands/cargo-login.html "> cargo-login(1)</ a > ).</ p >
55
55
< div class ="paragraph ">
56
- < p > The token for crates.io may be specified with the < code > CARGO_REGISTRY_TOKEN</ code >
57
- environment variable. Tokens for other registries may be specified with
58
- environment variables of the form < code > CARGO_REGISTRIES_NAME_TOKEN</ code > where < code > NAME</ code >
59
- is the name of the registry in all capital letters.</ p >
56
+ < p > < a href ="reference/config.html "> Cargo config</ a > environment variables can be
57
+ used to override the tokens stored in the credentials file. The token for
58
+ crates.io may be specified with the < code > CARGO_REGISTRY_TOKEN</ code > environment
59
+ variable. Tokens for other registries may be specified with environment
60
+ variables of the form < code > CARGO_REGISTRIES_NAME_TOKEN</ code > where < code > NAME</ code > is the name
61
+ of the registry in all capital letters.</ p >
60
62
</ div >
61
63
</ dd >
62
64
< dt class ="hdlist1 "> < strong > --index</ strong > < em > INDEX</ em > </ dt >
Original file line number Diff line number Diff line change 2
2
API token to use when authenticating. This overrides the token stored in
3
3
the credentials file (which is created by man:cargo-login[1]).
4
4
+
5
- The token for crates.io may be specified with the `CARGO_REGISTRY_TOKEN`
6
- environment variable. Tokens for other registries may be specified with
7
- environment variables of the form `CARGO_REGISTRIES_NAME_TOKEN` where `NAME`
8
- is the name of the registry in all capital letters.
5
+ linkcargo:reference/config.html[Cargo config] environment variables can be
6
+ used to override the tokens stored in the credentials file. The token for
7
+ crates.io may be specified with the `CARGO_REGISTRY_TOKEN` environment
8
+ variable. Tokens for other registries may be specified with environment
9
+ variables of the form `CARGO_REGISTRIES_NAME_TOKEN` where `NAME` is the name
10
+ of the registry in all capital letters.
Original file line number Diff line number Diff line change @@ -100,6 +100,10 @@ A full-featured registry that supports publishing will additionally need to
100
100
have a web API service that conforms to the API used by Cargo. The web API is
101
101
documented below.
102
102
103
+ At this time, there is no widely used software for running a custom registry.
104
+ There is interest in documenting projects that implement registry support, or
105
+ existing package caches that add support for Cargo.
106
+
103
107
### Index Format
104
108
105
109
The following defines the format of the index. New features are occasionally
Original file line number Diff line number Diff line change @@ -75,10 +75,13 @@ List owners of a crate.
75
75
API token to use when authenticating. This overrides the token stored in
76
76
the credentials file (which is created by \fB cargo \- login \fP (1)).
77
77
.sp
78
- The token for crates.io may be specified with the \fB CARGO_REGISTRY_TOKEN \fP
79
- environment variable. Tokens for other registries may be specified with
80
- environment variables of the form \fB CARGO_REGISTRIES_NAME_TOKEN \fP where \fB NAME \fP
81
- is the name of the registry in all capital letters.
78
+ .URL " https://doc.rust\- lang.org/cargo/reference/config.html" " Cargo config" " "
79
+ environment variables can be
80
+ used to override the tokens stored in the credentials file. The token for
81
+ crates.io may be specified with the \fB CARGO_REGISTRY_TOKEN \fP environment
82
+ variable. Tokens for other registries may be specified with environment
83
+ variables of the form \fB CARGO_REGISTRIES_NAME_TOKEN \fP where \fB NAME \fP is the name
84
+ of the registry in all capital letters.
82
85
.RE
83
86
.sp
84
87
\fB \-\- index \fP \fI INDEX \fP
Original file line number Diff line number Diff line change @@ -118,10 +118,13 @@ Perform all checks without uploading.
118
118
API token to use when authenticating. This overrides the token stored in
119
119
the credentials file (which is created by \fB cargo \- login \fP (1)).
120
120
.sp
121
- The token for crates.io may be specified with the \fB CARGO_REGISTRY_TOKEN \fP
122
- environment variable. Tokens for other registries may be specified with
123
- environment variables of the form \fB CARGO_REGISTRIES_NAME_TOKEN \fP where \fB NAME \fP
124
- is the name of the registry in all capital letters.
121
+ .URL " https://doc.rust\- lang.org/cargo/reference/config.html" " Cargo config" " "
122
+ environment variables can be
123
+ used to override the tokens stored in the credentials file. The token for
124
+ crates.io may be specified with the \fB CARGO_REGISTRY_TOKEN \fP environment
125
+ variable. Tokens for other registries may be specified with environment
126
+ variables of the form \fB CARGO_REGISTRIES_NAME_TOKEN \fP where \fB NAME \fP is the name
127
+ of the registry in all capital letters.
125
128
.RE
126
129
.sp
127
130
\fB \-\- no \- verify \fP
Original file line number Diff line number Diff line change @@ -65,10 +65,13 @@ Undo a yank, putting a version back into the index.
65
65
API token to use when authenticating. This overrides the token stored in
66
66
the credentials file (which is created by \fB cargo \- login \fP (1)).
67
67
.sp
68
- The token for crates.io may be specified with the \fB CARGO_REGISTRY_TOKEN \fP
69
- environment variable. Tokens for other registries may be specified with
70
- environment variables of the form \fB CARGO_REGISTRIES_NAME_TOKEN \fP where \fB NAME \fP
71
- is the name of the registry in all capital letters.
68
+ .URL " https://doc.rust\- lang.org/cargo/reference/config.html" " Cargo config" " "
69
+ environment variables can be
70
+ used to override the tokens stored in the credentials file. The token for
71
+ crates.io may be specified with the \fB CARGO_REGISTRY_TOKEN \fP environment
72
+ variable. Tokens for other registries may be specified with environment
73
+ variables of the form \fB CARGO_REGISTRIES_NAME_TOKEN \fP where \fB NAME \fP is the name
74
+ of the registry in all capital letters.
72
75
.RE
73
76
.sp
74
77
\fB \-\- index \fP \fI INDEX \fP
You can’t perform that action at this time.
0 commit comments