diff --git a/.travis.yml b/.travis.yml index d611bd00..469830ef 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 @@ -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 diff --git a/CHANGELOG.md b/CHANGELOG.md index 46a2de4c..0533c634 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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>` is handled differently. If you need to have a `Option>` + handled the old was, you can `type Something = Vec;` and then use `Option` + 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) diff --git a/Cargo.toml b/Cargo.toml index 14ccc9f4..5ad45319 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "structopt" -version = "0.2.17" +version = "0.3.0" authors = ["Guillaume Pinot ", "others"] description = "Parse command line argument by defining a struct." documentation = "https://docs.rs/structopt" @@ -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] diff --git a/structopt-derive/Cargo.toml b/structopt-derive/Cargo.toml index a25b6d94..75e6bcb3 100644 --- a/structopt-derive/Cargo.toml +++ b/structopt-derive/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "structopt-derive" -version = "0.2.17" +version = "0.3.0" authors = ["Guillaume Pinot "] description = "Parse command line argument by defining a struct, derive crate." documentation = "https://docs.rs/structopt-derive" diff --git a/tests/author_version_about.rs b/tests/author_version_about.rs index 89dad08b..7a44bce5 100644 --- a/tests/author_version_about.rs +++ b/tests/author_version_about.rs @@ -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 , others")); assert!(output.contains("Parse command line argument by defining a struct.")); }