]> git.proxmox.com Git - cargo.git/commit
Auto merge of #11033 - buggymcbugfix:buggymcbugfix/cargo-add-docs, r=epage
authorbors <bors@rust-lang.org>
Tue, 30 Aug 2022 21:50:14 +0000 (21:50 +0000)
committerbors <bors@rust-lang.org>
Tue, 30 Aug 2022 21:50:14 +0000 (21:50 +0000)
commitf75aee0a79b28bbca489c0da1bd6048ff243c3ad
treef5eeb399ec511f7192a0cc33dd35a9e3d5fa04f0
parent996a6363ce4b9109d4ca757407dd6dcb4805c86f
parent9c8a8ea2ca4ebb043ab4895203e3358e69533404
Auto merge of #11033 - buggymcbugfix:buggymcbugfix/cargo-add-docs, r=epage

Very slight `cargo add` documentation improvements

As discussed in https://github.com/rust-lang/book/pull/3331, a quick explanation of the `Features` part of the message that gets printed to stdout when adding some dependency.

Consider the following example:

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

It was not clear to me what `+foo` and `-bar` meant until `@carols10cents'` kindly explained it to me. Hopefully the documentation now clarifies this.

TODO:

- [x] Run `./build-man.sh`