Skip to content

Commit 524e36c

Browse files
committed
chore: Release
1 parent 6635237 commit 524e36c

File tree

6 files changed

+26
-23
lines changed

6 files changed

+26
-23
lines changed

CHANGELOG.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ _gated behind `unstable-v4`_
2727
<!-- next-header -->
2828
## [Unreleased] - ReleaseDate
2929

30+
## [3.1.18] - 2022-05-10
31+
3032
### Fixes
3133

3234
- Fix deprecated `arg_enum!` for users migrating to clap3 (#3717)
@@ -3354,7 +3356,8 @@ Minimum version of Rust is now v1.13.0 (Stable)
33543356
* **arg** allow lifetimes other than 'static in arguments ([9e8c1fb9](https://github.com/clap-rs/clap/commit/9e8c1fb9406f8448873ca58bab07fe905f1551e5))
33553357

33563358
<!-- next-url -->
3357-
[Unreleased]: https://github.com/clap-rs/clap/compare/v3.1.17...HEAD
3359+
[Unreleased]: https://github.com/clap-rs/clap/compare/v3.1.18...HEAD
3360+
[3.1.18]: https://github.com/clap-rs/clap/compare/v3.1.17...v3.1.18
33583361
[3.1.17]: https://github.com/clap-rs/clap/compare/v3.1.16...v3.1.17
33593362
[3.1.16]: https://github.com/clap-rs/clap/compare/v3.1.15...v3.1.16
33603363
[3.1.15]: https://github.com/clap-rs/clap/compare/v3.1.14...v3.1.15

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ members = [
99

1010
[package]
1111
name = "clap"
12-
version = "3.1.17"
12+
version = "3.1.18"
1313
description = "A simple to use, efficient, and full-featured Command Line Argument Parser"
1414
repository = "https://github.com/clap-rs/clap"
1515
documentation = "https://docs.rs/clap/"
@@ -119,7 +119,7 @@ name = "06_rustup"
119119
path = "benches/06_rustup.rs"
120120

121121
[dependencies]
122-
clap_derive = { path = "./clap_derive", version = "=3.1.7", optional = true }
122+
clap_derive = { path = "./clap_derive", version = "=3.1.18", optional = true }
123123
clap_lex = { path = "./clap_lex", version = "0.2.0" }
124124
bitflags = "1.2"
125125
textwrap = { version = "0.15.0", default-features = false, features = [] }

README.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,24 +5,24 @@
55
66
[![Crates.io](https://img.shields.io/crates/v/clap?style=flat-square)](https://crates.io/crates/clap)
77
[![Crates.io](https://img.shields.io/crates/d/clap?style=flat-square)](https://crates.io/crates/clap)
8-
[![License](https://img.shields.io/badge/license-Apache%202.0-blue?style=flat-square)](https://github.com/clap-rs/clap/blob/v3.1.17/LICENSE-APACHE)
9-
[![License](https://img.shields.io/badge/license-MIT-blue?style=flat-square)](https://github.com/clap-rs/clap/blob/v3.1.17/LICENSE-MIT)
8+
[![License](https://img.shields.io/badge/license-Apache%202.0-blue?style=flat-square)](https://github.com/clap-rs/clap/blob/v3.1.18/LICENSE-APACHE)
9+
[![License](https://img.shields.io/badge/license-MIT-blue?style=flat-square)](https://github.com/clap-rs/clap/blob/v3.1.18/LICENSE-MIT)
1010
[![Build Status](https://img.shields.io/github/workflow/status/clap-rs/clap/CI/staging?style=flat-square)](https://github.com/clap-rs/clap/actions/workflows/ci.yml?query=branch%3Astaging)
1111
[![Coverage Status](https://img.shields.io/coveralls/github/clap-rs/clap/master?style=flat-square)](https://coveralls.io/github/clap-rs/clap?branch=master)
1212
[![Contributors](https://img.shields.io/github/contributors/clap-rs/clap?style=flat-square)](https://github.com/clap-rs/clap/graphs/contributors)
1313

1414
Dual-licensed under [Apache 2.0](LICENSE-APACHE) or [MIT](LICENSE-MIT).
1515

1616
1. [About](#about)
17-
2. Tutorial: [Builder API](https://github.com/clap-rs/clap/blob/v3.1.17/examples/tutorial_builder/README.md), [Derive API](https://github.com/clap-rs/clap/blob/v3.1.17/examples/tutorial_derive/README.md)
18-
3. [Examples](https://github.com/clap-rs/clap/blob/v3.1.17/examples/README.md)
17+
2. Tutorial: [Builder API](https://github.com/clap-rs/clap/blob/v3.1.18/examples/tutorial_builder/README.md), [Derive API](https://github.com/clap-rs/clap/blob/v3.1.18/examples/tutorial_derive/README.md)
18+
3. [Examples](https://github.com/clap-rs/clap/blob/v3.1.18/examples/README.md)
1919
4. [API Reference](https://docs.rs/clap)
20-
- [Derive Reference](https://github.com/clap-rs/clap/blob/v3.1.17/examples/derive_ref/README.md)
20+
- [Derive Reference](https://github.com/clap-rs/clap/blob/v3.1.18/examples/derive_ref/README.md)
2121
- [Feature Flags](#feature-flags)
22-
5. [CHANGELOG](https://github.com/clap-rs/clap/blob/v3.1.17/CHANGELOG.md)
23-
6. [FAQ](https://github.com/clap-rs/clap/blob/v3.1.17/docs/FAQ.md)
22+
5. [CHANGELOG](https://github.com/clap-rs/clap/blob/v3.1.18/CHANGELOG.md)
23+
6. [FAQ](https://github.com/clap-rs/clap/blob/v3.1.18/docs/FAQ.md)
2424
7. [Questions & Discussions](https://github.com/clap-rs/clap/discussions)
25-
8. [Contributing](https://github.com/clap-rs/clap/blob/v3.1.17/CONTRIBUTING.md)
25+
8. [Contributing](https://github.com/clap-rs/clap/blob/v3.1.18/CONTRIBUTING.md)
2626
8. [Sponsors](#sponsors)
2727

2828
## About
@@ -32,8 +32,8 @@ Create your command-line parser, with all of the bells and whistles, declarative
3232
### Example
3333

3434
This uses our
35-
[Derive API](https://github.com/clap-rs/clap/blob/v3.1.17/examples/tutorial_derive/README.md)
36-
which provides access to the [Builder API](https://github.com/clap-rs/clap/blob/v3.1.17/examples/tutorial_builder/README.md) as attributes on a `struct`:
35+
[Derive API](https://github.com/clap-rs/clap/blob/v3.1.18/examples/tutorial_derive/README.md)
36+
which provides access to the [Builder API](https://github.com/clap-rs/clap/blob/v3.1.18/examples/tutorial_builder/README.md) as attributes on a `struct`:
3737

3838
<!-- Copied from examples/demo.{rs,md} -->
3939
```rust,no_run
@@ -63,7 +63,7 @@ fn main() {
6363
Add this to `Cargo.toml`:
6464
```toml
6565
[dependencies]
66-
clap = { version = "3.1.17", features = ["derive"] }
66+
clap = { version = "3.1.18", features = ["derive"] }
6767
```
6868
```bash
6969
$ demo --help
@@ -103,12 +103,12 @@ CLI parsers optimized for other use cases.
103103

104104
### Selecting an API
105105

106-
Why use the declarative [Derive API](https://github.com/clap-rs/clap/blob/v3.1.17/examples/tutorial_derive/README.md):
106+
Why use the declarative [Derive API](https://github.com/clap-rs/clap/blob/v3.1.18/examples/tutorial_derive/README.md):
107107
- Easier to read, write, and modify
108108
- Easier to keep the argument declaration and reading of argument in sync
109109
- Easier to reuse, e.g. [clap-verbosity-flag](https://crates.io/crates/clap-verbosity-flag)
110110

111-
Why use the procedural [Builder API](https://github.com/clap-rs/clap/blob/v3.1.17/examples/tutorial_builder/README.md):
111+
Why use the procedural [Builder API](https://github.com/clap-rs/clap/blob/v3.1.18/examples/tutorial_builder/README.md):
112112
- Faster compile times if you aren't already using other procedural macros
113113
- More flexible, e.g. you can look up how many times an argument showed up,
114114
what its values were, and what were the indexes of those values. The Derive

clap_derive/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "clap_derive"
3-
version = "3.1.7"
3+
version = "3.1.18"
44
edition = "2018"
55
include = [
66
"src/**/*",

clap_derive/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
Macro implementation for clap's derives.
44

55
[docs.rs](https://docs.rs/clap)
6-
- [Derive Tutorial](https://github.com/clap-rs/clap/blob/v3.1.7/examples/tutorial_derive/README.md)
7-
- [Derive Reference](https://github.com/clap-rs/clap/blob/v3.1.7/examples/derive_ref/README.md)
6+
- [Derive Tutorial](https://github.com/clap-rs/clap/blob/v3.1.18/examples/tutorial_derive/README.md)
7+
- [Derive Reference](https://github.com/clap-rs/clap/blob/v3.1.18/examples/derive_ref/README.md)
88

99
## License
1010

src/derive.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ use std::ffi::OsString;
2020
/// See also [`Subcommand`] and [`Args`].
2121
///
2222
/// See the
23-
/// [derive reference](https://github.com/clap-rs/clap/blob/v3.1.17/examples/derive_ref/README.md)
23+
/// [derive reference](https://github.com/clap-rs/clap/blob/v3.1.18/examples/derive_ref/README.md)
2424
/// for attributes and best practices.
2525
///
2626
/// **NOTE:** Deriving requires the `derive` feature flag
@@ -306,7 +306,7 @@ pub trait FromArgMatches: Sized {
306306
/// - `Variant(ChildArgs)`: No attribute is used with enum variants that impl `Args`.
307307
///
308308
/// See the
309-
/// [derive reference](https://github.com/clap-rs/clap/blob/v3.1.17/examples/derive_ref/README.md)
309+
/// [derive reference](https://github.com/clap-rs/clap/blob/v3.1.18/examples/derive_ref/README.md)
310310
/// for attributes and best practices.
311311
///
312312
/// **NOTE:** Deriving requires the `derive` feature flag
@@ -350,7 +350,7 @@ pub trait Args: FromArgMatches + Sized {
350350
/// `Subcommand`.
351351
///
352352
/// See the
353-
/// [derive reference](https://github.com/clap-rs/clap/blob/v3.1.17/examples/derive_ref/README.md)
353+
/// [derive reference](https://github.com/clap-rs/clap/blob/v3.1.18/examples/derive_ref/README.md)
354354
/// for attributes and best practices.
355355
///
356356
/// **NOTE:** Deriving requires the `derive` feature flag
@@ -394,7 +394,7 @@ pub trait Subcommand: FromArgMatches + Sized {
394394
/// - Allowing using the `#[clap(default_value_t)]` attribute without implementing `Display`.
395395
///
396396
/// See the
397-
/// [derive reference](https://github.com/clap-rs/clap/blob/v3.1.17/examples/derive_ref/README.md)
397+
/// [derive reference](https://github.com/clap-rs/clap/blob/v3.1.18/examples/derive_ref/README.md)
398398
/// for attributes and best practices.
399399
///
400400
/// **NOTE:** Deriving requires the `derive` feature flag

0 commit comments

Comments
 (0)