]> git.proxmox.com Git - cargo.git/commitdiff
Document cargo-add's feature message
authorVilem Liepelt <17603372+buggymcbugfix@users.noreply.github.com>
Tue, 30 Aug 2022 20:58:34 +0000 (22:58 +0200)
committerVilem Liepelt <17603372+buggymcbugfix@users.noreply.github.com>
Tue, 30 Aug 2022 20:58:34 +0000 (22:58 +0200)
This refers to the `Features` part of the message that gets printed to
stderr after successfully adding some dependency, e.g.:

```
cargo add my-crate
    Updating crates.io index
      Adding my-crate v0.1.0 to dependencies.
             Features:
             + foo
             - bar
```

This tells us that the `foo` feature is enabled and `bar` is disabled.

src/doc/man/cargo-add.md
src/doc/man/generated_txt/cargo-add.txt
src/doc/src/commands/cargo-add.md
src/etc/man/cargo-add.1

index 9f92d7508a22f88ccd2e5c15efb4316d34c5411b..10c350089c9382f2568fef6b26e685941a8c75f2 100644 (file)
@@ -31,6 +31,11 @@ If no source is specified, then a best effort will be made to select one, includ
 
 When you add a package that is already present, the existing entry will be updated with the flags specified.
 
+Upon successful invocation, the enabled (`+`) and disabled (`-`) [features] of the specified
+dependency will be listed in the command's output.
+
+[features]: ../reference/features.md
+
 ## OPTIONS
 
 ### Source options
index f4a5a14e980e69a41c14e3730223c93c7c3f0eab..832f53169e109e922e5d8f52d5e2a7431f333b5a 100644 (file)
@@ -32,6 +32,10 @@ DESCRIPTION
        When you add a package that is already present, the existing entry will
        be updated with the flags specified.
 
+       Upon successful invocation, the enabled (+) and disabled (-) features
+       <https://doc.rust-lang.org/cargo/reference/features.md> of the specified
+       dependency will be listed in the command's output.
+
 OPTIONS
    Source options
        --git url
index 619613ba5465409f6e175518eca49d26e7f88e31..da6f6fe20429e7e41d861680273bd511cacc6a6d 100644 (file)
@@ -31,6 +31,11 @@ If no source is specified, then a best effort will be made to select one, includ
 
 When you add a package that is already present, the existing entry will be updated with the flags specified.
 
+Upon successful invocation, the enabled (`+`) and disabled (`-`) [features] of the specified
+dependency will be listed in the command's output.
+
+[features]: ../reference/features.md
+
 ## OPTIONS
 
 ### Source options
index 959aebe602c5c93c4f777c399dee1cba91fec95d..147e418d1685bc9a17079003034260541ed50c2d 100644 (file)
@@ -43,6 +43,9 @@ If no source is specified, then a best effort will be made to select one, includ
 .RE
 .sp
 When you add a package that is already present, the existing entry will be updated with the flags specified.
+.sp
+Upon successful invocation, the enabled (\fB+\fR) and disabled (\fB\-\fR) \fIfeatures\fR <https://doc.rust\-lang.org/cargo/reference/features.md> of the specified
+dependency will be listed in the command's output.
 .SH "OPTIONS"
 .SS "Source options"
 .sp