File tree 6 files changed +69
-6
lines changed
tests/testsuite/cargo_add/help
6 files changed +69
-6
lines changed Original file line number Diff line number Diff line change @@ -62,17 +62,17 @@ The package name will be exposed as feature of your crate.")
62
62
The package will be removed from your features." )
63
63
. conflicts_with ( "dev" )
64
64
. overrides_with ( "optional" ) ,
65
- flag ( "public" , "Mark the dependency as public" )
65
+ flag ( "public" , "Mark the dependency as public (unstable) " )
66
66
. conflicts_with ( "dev" )
67
67
. conflicts_with ( "build" )
68
- . long_help ( "Mark the dependency as public
68
+ . long_help ( "Mark the dependency as public (unstable)
69
69
70
70
The dependency can be referenced in your library's public API." ) ,
71
- flag ( "no-public" , "Mark the dependency as private" )
71
+ flag ( "no-public" , "Mark the dependency as private (unstable) " )
72
72
. conflicts_with ( "dev" )
73
73
. conflicts_with ( "build" )
74
74
. overrides_with ( "public" )
75
- . long_help ( "Mark the dependency as private
75
+ . long_help ( "Mark the dependency as private (unstable)
76
76
77
77
While you can use the crate in your implementation, it cannot be referenced in your public API." ) ,
78
78
clap:: Arg :: new ( "rename" )
Original file line number Diff line number Diff line change @@ -107,6 +107,22 @@ Mark the dependency as [optional](../reference/features.html#optional-dependenci
107
107
Mark the dependency as [ required] ( ../reference/features.html#optional-dependencies ) .
108
108
{{/option}}
109
109
110
+ {{#option "` --public ` " }}
111
+ Mark the dependency as public.
112
+
113
+ The dependency can be referenced in your library's public API.
114
+
115
+ [ Unstable (nightly-only)] ( ../reference/unstable.html#public-dependency )
116
+ {{/option}}
117
+
118
+ {{#option "` --no-public ` " }}
119
+ Mark the dependency as private.
120
+
121
+ While you can use the crate in your implementation, it cannot be referenced in your public API.
122
+
123
+ [ Unstable (nightly-only)] ( ../reference/unstable.html#public-dependency )
124
+ {{/option}}
125
+
110
126
{{#option "` --no-default-features ` " }}
111
127
Disable the [ default features] ( ../reference/features.html#dependency-features ) .
112
128
{{/option}}
Original file line number Diff line number Diff line change @@ -96,6 +96,23 @@ OPTIONS
96
96
Mark the dependency as required
97
97
<https://doc.rust-lang.org/cargo/reference/features.html#optional-dependencies>.
98
98
99
+ --public
100
+ Mark the dependency as public.
101
+
102
+ The dependency can be referenced in your library’s public API.
103
+
104
+ Unstable (nightly-only)
105
+ <https://doc.rust-lang.org/cargo/reference/unstable.html#public-dependency>
106
+
107
+ --no-public
108
+ Mark the dependency as private.
109
+
110
+ While you can use the crate in your implementation, it cannot be
111
+ referenced in your public API.
112
+
113
+ Unstable (nightly-only)
114
+ <https://doc.rust-lang.org/cargo/reference/unstable.html#public-dependency>
115
+
99
116
--no-default-features
100
117
Disable the default features
101
118
<https://doc.rust-lang.org/cargo/reference/features.html#dependency-features>.
Original file line number Diff line number Diff line change @@ -107,6 +107,18 @@ which is defined by the <code>registry.default</code> config key which defaults
107
107
<dd class =" option-desc " >Mark the dependency as <a href =" ../reference/features.html#optional-dependencies " >required</a >.</dd >
108
108
109
109
110
+ <dt class =" option-term " id =" option-cargo-add---public " ><a class =" option-anchor " href =" #option-cargo-add---public " ></a ><code >--public</code ></dt >
111
+ <dd class =" option-desc " >Mark the dependency as public. </p >
112
+ <p >The dependency can be referenced in your library’s public API.</p >
113
+ <p ><a href =" ../reference/unstable.html#public-dependency " >Unstable (nightly-only)</a ></dd >
114
+
115
+
116
+ <dt class =" option-term " id =" option-cargo-add---no-public " ><a class =" option-anchor " href =" #option-cargo-add---no-public " ></a ><code >--no-public</code ></dt >
117
+ <dd class =" option-desc " >Mark the dependency as private. </p >
118
+ <p >While you can use the crate in your implementation, it cannot be referenced in your public API.</p >
119
+ <p ><a href =" ../reference/unstable.html#public-dependency " >Unstable (nightly-only)</a ></dd >
120
+
121
+
110
122
<dt class =" option-term " id =" option-cargo-add---no-default-features " ><a class =" option-anchor " href =" #option-cargo-add---no-default-features " ></a ><code >--no-default-features</code ></dt >
111
123
<dd class =" option-desc " >Disable the <a href =" ../reference/features.html#dependency-features " >default features</a >.</dd >
112
124
Original file line number Diff line number Diff line change @@ -121,6 +121,24 @@ Mark the dependency as \fIoptional\fR <https://doc.rust\-lang.org/cargo/referenc
121
121
Mark the dependency as \fI required \fR <https://doc.rust\- lang.org/cargo/reference/features.html#optional\- dependencies>\& .
122
122
.RE
123
123
.sp
124
+ \fB \-\- public \fR
125
+ .RS 4
126
+ Mark the dependency as public.
127
+ .sp
128
+ The dependency can be referenced in your library\[cq ] s public API.
129
+ .sp
130
+ \fI Unstable (nightly \- only) \fR <https://doc.rust\- lang.org/cargo/reference/unstable.html#public\- dependency>
131
+ .RE
132
+ .sp
133
+ \fB \-\- no \- public \fR
134
+ .RS 4
135
+ Mark the dependency as private.
136
+ .sp
137
+ While you can use the crate in your implementation, it cannot be referenced in your public API.
138
+ .sp
139
+ \fI Unstable (nightly \- only) \fR <https://doc.rust\- lang.org/cargo/reference/unstable.html#public\- dependency>
140
+ .RE
141
+ .sp
124
142
\fB \-\- no \- default \- features \fR
125
143
.RS 4
126
144
Disable the \fI default features \fR <https://doc.rust\- lang.org/cargo/reference/features.html#dependency\- features>\& .
Original file line number Diff line number Diff line change @@ -33,12 +33,12 @@ Options:
33
33
The package will be removed from your features.
34
34
35
35
--public
36
- Mark the dependency as public
36
+ Mark the dependency as public (unstable)
37
37
38
38
The dependency can be referenced in your library's public API.
39
39
40
40
--no-public
41
- Mark the dependency as private
41
+ Mark the dependency as private (unstable)
42
42
43
43
While you can use the crate in your implementation, it cannot be referenced in your public
44
44
API.
You can’t perform that action at this time.
0 commit comments