diff --git a/src/doc/man/cargo-add.md b/src/doc/man/cargo-add.md index d3a62900a062..e70bbc1462f5 100644 --- a/src/doc/man/cargo-add.md +++ b/src/doc/man/cargo-add.md @@ -107,6 +107,14 @@ Mark the dependency as [optional](../reference/features.html#optional-dependenci Mark the dependency as [required](../reference/features.html#optional-dependencies). {{/option}} +{{#option "`--public`" }} +Mark the dependency as public. +{{/option}} + +{{#option "`--no-public`" }} +Mark the dependency as private. +{{/option}} + {{#option "`--no-default-features`" }} Disable the [default features](../reference/features.html#dependency-features). {{/option}} diff --git a/src/doc/man/generated_txt/cargo-add.txt b/src/doc/man/generated_txt/cargo-add.txt index 3bd4bd5aa91a..12b9197a96b2 100644 --- a/src/doc/man/generated_txt/cargo-add.txt +++ b/src/doc/man/generated_txt/cargo-add.txt @@ -96,6 +96,12 @@ OPTIONS Mark the dependency as required . + --public + Mark the dependency as public. + + --no-public + Mark the dependency as private. + --no-default-features Disable the default features . diff --git a/src/doc/src/commands/cargo-add.md b/src/doc/src/commands/cargo-add.md index 68b7c4c364c6..cfd51f7b2078 100644 --- a/src/doc/src/commands/cargo-add.md +++ b/src/doc/src/commands/cargo-add.md @@ -107,6 +107,14 @@ which is defined by the registry.default config key which defaults
Mark the dependency as required.
+
--public
+
Mark the dependency as public.
+ + +
--no-public
+
Mark the dependency as private.
+ +
--no-default-features
Disable the default features.
diff --git a/src/etc/man/cargo-add.1 b/src/etc/man/cargo-add.1 index 4e8b685667d6..a36f9a198bc2 100644 --- a/src/etc/man/cargo-add.1 +++ b/src/etc/man/cargo-add.1 @@ -121,6 +121,16 @@ Mark the dependency as \fIoptional\fR \&. .RE .sp +\fB\-\-public\fR +.RS 4 +Mark the dependency as public. +.RE +.sp +\fB\-\-no\-public\fR +.RS 4 +Mark the dependency as private. +.RE +.sp \fB\-\-no\-default\-features\fR .RS 4 Disable the \fIdefault features\fR \&.