Merge pull request #3195 from bestouff/patch-1

docs: More explicit "derive" feature
This commit is contained in:
Ed Page 2021-12-17 10:55:42 -06:00 committed by GitHub
commit a861053928
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View file

@ -49,6 +49,7 @@ pre-release-replacements = [
{file="CHANGELOG.md", search="<!-- next-header -->", replace="<!-- next-header -->\n## [Unreleased] - ReleaseDate\n", exactly=1},
{file="CHANGELOG.md", search="<!-- next-url -->", replace="<!-- next-url -->\n[Unreleased]: https://github.com/clap-rs/clap/compare/{{tag_name}}...HEAD", exactly=1},
{file="README.md", search="github.com/clap-rs/clap/blob/[^/]+/", replace="github.com/clap-rs/clap/blob/{{tag_name}}/", exactly=9, prerelease = true},
{file="README.md", search="version = \"[a-z0-9\\.-]+\"", replace="version = \"{{version}}\"", exactly=1},
]
[features]

View file

@ -56,7 +56,11 @@ fn main() {
}
}
```
*(note: requires feature `derive`)*
Add this to `Cargo.toml`:
```toml
[dependencies]
clap = { version = "3.0.0-rc.7", features = ["derive"] }
```
```bash
$ demo --help
clap [..]