File tree 4 files changed +32
-0
lines changed
4 files changed +32
-0
lines changed Original file line number Diff line number Diff line change @@ -107,6 +107,14 @@ 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
+ {{/option}}
113
+
114
+ {{#option "` --no-public ` " }}
115
+ Mark the dependency as private.
116
+ {{/option}}
117
+
110
118
{{#option "` --no-default-features ` " }}
111
119
Disable the [ default features] ( ../reference/features.html#dependency-features ) .
112
120
{{/option}}
Original file line number Diff line number Diff line change @@ -96,6 +96,12 @@ 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
+ --no-public
103
+ Mark the dependency as private.
104
+
99
105
--no-default-features
100
106
Disable the default features
101
107
<https://doc.rust-lang.org/cargo/reference/features.html#dependency-features>.
Original file line number Diff line number Diff line change @@ -107,6 +107,14 @@ 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.</dd >
112
+
113
+
114
+ <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 >
115
+ <dd class =" option-desc " >Mark the dependency as private.</dd >
116
+
117
+
110
118
<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
119
<dd class =" option-desc " >Disable the <a href =" ../reference/features.html#dependency-features " >default features</a >.</dd >
112
120
Original file line number Diff line number Diff line change @@ -121,6 +121,16 @@ 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
+ .RE
128
+ .sp
129
+ \fB \-\- no \- public \fR
130
+ .RS 4
131
+ Mark the dependency as private.
132
+ .RE
133
+ .sp
124
134
\fB \-\- no \- default \- features \fR
125
135
.RS 4
126
136
Disable the \fI default features \fR <https://doc.rust\- lang.org/cargo/reference/features.html#dependency\- features>\& .
You can’t perform that action at this time.
0 commit comments