Skip to content

Commit

Permalink
Auto merge of #3065 - mbrock:master, r=alexcrichton
Browse files Browse the repository at this point in the history
doc: mention feature toggling in "Specifying deps"

Basically copies info that was already on another page.
  • Loading branch information
bors committed Sep 1, 2016
2 parents e713e7f + 885501e commit e4b4471
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/doc/specifying-dependencies.md
Original file line number Diff line number Diff line change
Expand Up @@ -391,3 +391,19 @@ unless listed under the `dependencies` section as well. A package
itself and its build script are built separately, so their
dependencies need not coincide. Cargo is kept simpler and cleaner by
using independent dependencies for independent purposes.

# Choosing features

If a package you depend on offers conditional features, you can
specify which to use:

```toml
[dependencies.awesome]
version = "1.3.5"
default-features = false # do not include the default features, and optionally
# cherry-pick individual features
features = ["secure-password", "civet"]
```

More information about features can be found in the
[manifest documentation](manifest.html#the-features-section).

0 comments on commit e4b4471

Please sign in to comment.