Skip to content

Commit

Permalink
bump to rust 1.34 and prepare the v0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
TeXitoi committed Jun 10, 2019
1 parent 47fd611 commit 50e7edd
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 13 deletions.
6 changes: 2 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@ language: rust
cache: cargo
matrix:
include:
- rust: 1.21.0
# `examples/enum_in_args.rs` cannot be compiled because of `clap::arg_enum!`.
env: TARGETS=--tests
- rust: 1.34.0
- rust: stable
- rust: beta
- rust: nightly
Expand All @@ -15,4 +13,4 @@ matrix:
before_script: rustup component add rustfmt-preview
script: cargo fmt --all -- --check
script:
- cargo test $FEATURES $TARGETS
- cargo test $FEATURES
17 changes: 13 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,19 @@
# v0.2.17 (2019-06-01)
# v0.3.0 (2019-06-XX)

* Add optional feature to support `paw` by [@gameldar](https://github.com/gameldar)
([#187](https://github.com/TeXitoi/structopt/issues/187))
## Breaking changes

* Bump minimum rust version to 1.34 by [@TeXitoi](https://github.com/TeXitoi)
* Support optional vectors of arguments for distinguishing between `-o 1 2`, `-o` and no option provided at all
by [@sphynx](https://github.com/sphynx)
([#180](https://github.com/TeXitoi/structopt/issues/188))
([#180](https://github.com/TeXitoi/structopt/issues/188)). This is a breaking change
as `Option<Vec<T>>` is handled differently. If you need to have a `Option<Vec<T>>`
handled the old was, you can `type Something = Vec<T>;` and then use `Option<Something>`
as your structopt field.

## improvements

* Add optional feature to support `paw` by [@gameldar](https://github.com/gameldar)
([#187](https://github.com/TeXitoi/structopt/issues/187))

# v0.2.16 (2019-05-29)

Expand Down
6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "structopt"
version = "0.2.17"
version = "0.3.0"
authors = ["Guillaume Pinot <[email protected]>", "others"]
description = "Parse command line argument by defining a struct."
documentation = "https://docs.rs/structopt"
Expand All @@ -27,7 +27,7 @@ paw = ["structopt-derive/paw"]
travis-ci = { repository = "TeXitoi/structopt" }

[dependencies]
clap = { version = "2.21", default-features = false }
structopt-derive = { path = "structopt-derive", version = "0.2.17" }
clap = { version = "2.33", default-features = false }
structopt-derive = { path = "structopt-derive", version = "0.3.0" }

[workspace]
2 changes: 1 addition & 1 deletion structopt-derive/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "structopt-derive"
version = "0.2.17"
version = "0.3.0"
authors = ["Guillaume Pinot <[email protected]>"]
description = "Parse command line argument by defining a struct, derive crate."
documentation = "https://docs.rs/structopt-derive"
Expand Down
2 changes: 1 addition & 1 deletion tests/author_version_about.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ fn use_env() {
let mut output = Vec::new();
Opt::clap().write_long_help(&mut output).unwrap();
let output = String::from_utf8(output).unwrap();
assert!(output.starts_with("structopt 0.2."));
assert!(output.starts_with("structopt 0."));
assert!(output.contains("Guillaume Pinot <[email protected]>, others"));
assert!(output.contains("Parse command line argument by defining a struct."));
}

0 comments on commit 50e7edd

Please sign in to comment.