diff --git a/src/doc/man/cargo-package.adoc b/src/doc/man/cargo-package.adoc index 5eea83dc06c..bc81620afa6 100644 --- a/src/doc/man/cargo-package.adoc +++ b/src/doc/man/cargo-package.adoc @@ -59,6 +59,8 @@ include::options-target-triple.adoc[] include::options-target-dir.adoc[] +include::options-features.adoc[] + === Manifest Options include::options-manifest-path.adoc[] diff --git a/src/doc/man/cargo-publish.adoc b/src/doc/man/cargo-publish.adoc index 23fb0c3de56..ff9f782f47d 100644 --- a/src/doc/man/cargo-publish.adoc +++ b/src/doc/man/cargo-publish.adoc @@ -57,6 +57,8 @@ include::options-target-triple.adoc[] include::options-target-dir.adoc[] +include::options-features.adoc[] + === Manifest Options include::options-manifest-path.adoc[] diff --git a/src/doc/man/generated/cargo-package.html b/src/doc/man/generated/cargo-package.html index fe16e5d8fc6..8658e234a46 100644 --- a/src/doc/man/generated/cargo-package.html +++ b/src/doc/man/generated/cargo-package.html @@ -119,6 +119,32 @@

Compilation Options

+

Feature Selection

+
+

When no feature options are given, the default feature is activated for +every selected package.

+
+
+
+
--features FEATURES
+
+

Space or comma separated list of features to activate. These features only +apply to the current directory’s package. Features of direct dependencies +may be enabled with <dep-name>/<feature-name> syntax.

+
+
--all-features
+
+

Activate all available features of all selected packages.

+
+
--no-default-features
+
+

Do not activate the default feature of the current directory’s +package.

+
+
+
+
+

Manifest Options

diff --git a/src/doc/man/generated/cargo-publish.html b/src/doc/man/generated/cargo-publish.html index 2e996d9fecd..c233c0e4ed8 100644 --- a/src/doc/man/generated/cargo-publish.html +++ b/src/doc/man/generated/cargo-publish.html @@ -118,6 +118,32 @@

Compilation Options

+

Feature Selection

+
+

When no feature options are given, the default feature is activated for +every selected package.

+
+
+
+
--features FEATURES
+
+

Space or comma separated list of features to activate. These features only +apply to the current directory’s package. Features of direct dependencies +may be enabled with <dep-name>/<feature-name> syntax.

+
+
--all-features
+
+

Activate all available features of all selected packages.

+
+
--no-default-features
+
+

Do not activate the default feature of the current directory’s +package.

+
+
+
+
+

Manifest Options

diff --git a/src/etc/man/cargo-package.1 b/src/etc/man/cargo-package.1 index 5752fe2a732..154cefb2095 100644 --- a/src/etc/man/cargo-package.1 +++ b/src/etc/man/cargo-package.1 @@ -2,12 +2,12 @@ .\" Title: cargo-package .\" Author: [see the "AUTHOR(S)" section] .\" Generator: Asciidoctor 1.5.8 -.\" Date: 2018-12-20 +.\" Date: 2019-01-14 .\" Manual: \ \& .\" Source: \ \& .\" Language: English .\" -.TH "CARGO\-PACKAGE" "1" "2018-12-20" "\ \&" "\ \&" +.TH "CARGO\-PACKAGE" "1" "2019-01-14" "\ \&" "\ \&" .ie \n(.g .ds Aq \(aq .el .ds Aq ' .ss \n[.ss] 0 @@ -171,6 +171,28 @@ specified with the \fBCARGO_TARGET_DIR\fP environment variable, or the Defaults to \fBtarget\fP in the root of the workspace. .RE +.SS "Feature Selection" +.sp +When no feature options are given, the \fBdefault\fP feature is activated for +every selected package. +.sp +\fB\-\-features\fP \fIFEATURES\fP +.RS 4 +Space or comma separated list of features to activate. These features only +apply to the current directory\(cqs package. Features of direct dependencies +may be enabled with \fB/\fP syntax. +.RE +.sp +\fB\-\-all\-features\fP +.RS 4 +Activate all available features of all selected packages. +.RE +.sp +\fB\-\-no\-default\-features\fP +.RS 4 +Do not activate the \fBdefault\fP feature of the current directory\(cqs +package. +.RE .SS "Manifest Options" .sp \fB\-\-manifest\-path\fP \fIPATH\fP diff --git a/src/etc/man/cargo-publish.1 b/src/etc/man/cargo-publish.1 index 6ee09ed9bcb..b3521b1fef2 100644 --- a/src/etc/man/cargo-publish.1 +++ b/src/etc/man/cargo-publish.1 @@ -2,12 +2,12 @@ .\" Title: cargo-publish .\" Author: [see the "AUTHOR(S)" section] .\" Generator: Asciidoctor 1.5.8 -.\" Date: 2018-12-20 +.\" Date: 2019-01-14 .\" Manual: \ \& .\" Source: \ \& .\" Language: English .\" -.TH "CARGO\-PUBLISH" "1" "2018-12-20" "\ \&" "\ \&" +.TH "CARGO\-PUBLISH" "1" "2019-01-14" "\ \&" "\ \&" .ie \n(.g .ds Aq \(aq .el .ds Aq ' .ss \n[.ss] 0 @@ -162,6 +162,28 @@ specified with the \fBCARGO_TARGET_DIR\fP environment variable, or the Defaults to \fBtarget\fP in the root of the workspace. .RE +.SS "Feature Selection" +.sp +When no feature options are given, the \fBdefault\fP feature is activated for +every selected package. +.sp +\fB\-\-features\fP \fIFEATURES\fP +.RS 4 +Space or comma separated list of features to activate. These features only +apply to the current directory\(cqs package. Features of direct dependencies +may be enabled with \fB/\fP syntax. +.RE +.sp +\fB\-\-all\-features\fP +.RS 4 +Activate all available features of all selected packages. +.RE +.sp +\fB\-\-no\-default\-features\fP +.RS 4 +Do not activate the \fBdefault\fP feature of the current directory\(cqs +package. +.RE .SS "Manifest Options" .sp \fB\-\-manifest\-path\fP \fIPATH\fP