Skip to content

Commit dcbcc60

Browse files
committed
fix: fixes cargo features to NOT require nightly with unstable features
Closes #402
1 parent 7b287d7 commit dcbcc60

File tree

4 files changed

+8
-3
lines changed

4 files changed

+8
-3
lines changed

.travis.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,5 @@ after_success:
2828
travis-cargo --only stable coveralls --no-sudo -- --features yaml
2929
env:
3030
global:
31-
secure: JLBlgHY6OEmhJ8woewNJHmuBokTNUv7/WvLkJGV8xk0t6bXBwSU0jNloXwlH7FiQTc4TccX0PumPDD4MrMgxIAVFPmmmlQOCmdpYP4tqZJ8xo189E5zk8lKF5OyaVYCs5SMmFC3cxCsKjfwGIexNu3ck5Uhwe9jI0tqgkgM3URA=
31+
- TRAVIS_CARGO_NIGHTLY_FEATURE=travis
32+
- secure: JLBlgHY6OEmhJ8woewNJHmuBokTNUv7/WvLkJGV8xk0t6bXBwSU0jNloXwlH7FiQTc4TccX0PumPDD4MrMgxIAVFPmmmlQOCmdpYP4tqZJ8xo189E5zk8lKF5OyaVYCs5SMmFC3cxCsKjfwGIexNu3ck5Uhwe9jI0tqgkgM3URA=

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@
7272
* **There is now a priority of order to determine the name** - This is perhaps the biggest breaking change. See the documentation for full details. Prior to this change, the value name took precedence. **Ensure your args are using the proper names (i.e. typically the long or short and NOT the value name) throughout the code**
7373
* `ArgMatches::values_of` returns an `Values` now which implements `Iterator` (should not break any code)
7474
* `crate_version!` returns `&'static str` instead of `String`
75+
* Using the `clap_app!` macro requires compiling with the `unstable` feature because the syntax could change slightly in the future
7576

7677

7778
<a name="v1.5.5"></a>

Cargo.toml

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22

33
name = "clap"
4-
version = "2.0.0"
4+
version = "2.0.1"
55
authors = ["Kevin K. <[email protected]>"]
66
exclude = ["examples/*", "clap-tests/*", "tests/*", "benches/*", "*.png", "clap-perf/*"]
77
description = "A simple to use, efficient, and full featured Command Line Argument Parser"
@@ -26,8 +26,9 @@ color = ["ansi_term"]
2626
yaml = ["yaml-rust"]
2727
lints = ["clippy", "nightly"]
2828
nightly = [] # for building with nightly and unstable features
29-
unstable = ["lints", "nightly"] # for building with travis-cargo
29+
unstable = [] # for building with unstable features on stable Rust
3030
debug = [] # for building with debug messages
31+
travis = ["lints", "nightly"] # for building with travis-cargo
3132

3233
[profile.release]
3334
opt-level = 3

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ Below is a list of breaking changes between 1.x and 2.x and how you can change y
103103
* **There is now a priority of order to determine the name** - This is perhaps the biggest breaking change. See the documentation for full details. Prior to this change, the value name took precedence. **Ensure your args are using the proper names (i.e. typically the long or short and NOT the value name) throughout the code**
104104
* `ArgMatches::values_of` returns an `Values` now which implements `Iterator` (should not break any code)
105105
* `crate_version!` returns `&'static str` instead of `String`
106+
* Using the `clap_app!` macro requires compiling with the `unstable` feature because the syntax could change slightly in the future
106107

107108
For full details, see [CHANGELOG.md](https://github.com/kbknapp/clap-rs/blob/master/CHANGELOG.md)
108109

@@ -602,6 +603,7 @@ As of 2.0.0 (From 1.x)
602603
* **There is now a priority of order to determine the name** - This is perhaps the biggest breaking change. See the documentation for full details. Prior to this change, the value name took precedence. **Ensure your args are using the proper names (i.e. typically the long or short and NOT the value name) throughout the code**
603604
* `ArgMatches::values_of` returns an `Values` now which implements `Iterator` (should not break any code)
604605
* `crate_version!` returns `&'static str` instead of `String`
606+
* Using the `clap_app!` macro requires compiling with the `unstable` feature because the syntax could change slightly in the future
605607
606608
### Deprecations
607609

0 commit comments

Comments
 (0)