mirror of
https://github.com/clap-rs/clap
synced 2025-03-04 15:27:16 +00:00
fix: fixes cargo features to NOT require nightly with unstable features
Closes #402
This commit is contained in:
parent
7b287d7335
commit
280ada7b84
4 changed files with 13 additions and 7 deletions
12
.travis.yml
12
.travis.yml
|
@ -10,12 +10,13 @@ before_script:
|
|||
export PATH=$HOME/.local/bin:$PATH
|
||||
script:
|
||||
- |
|
||||
cargo build --features yaml &&
|
||||
cargo test --features yaml &&
|
||||
cargo build --verbose --no-default-features &&
|
||||
cargo build --verbose --features yaml &&
|
||||
cargo test --verbose --features yaml &&
|
||||
make -C clap-tests test &&
|
||||
travis-cargo --only stable doc -- --features yaml &&
|
||||
travis-cargo --only nightly build -- --features travis &&
|
||||
travis-cargo --only nightly bench &&
|
||||
cargo build --no-default-features
|
||||
travis-cargo --only stable doc -- --features yaml
|
||||
addons:
|
||||
apt:
|
||||
packages:
|
||||
|
@ -28,4 +29,5 @@ after_success:
|
|||
travis-cargo --only stable coveralls --no-sudo -- --features yaml
|
||||
env:
|
||||
global:
|
||||
secure: JLBlgHY6OEmhJ8woewNJHmuBokTNUv7/WvLkJGV8xk0t6bXBwSU0jNloXwlH7FiQTc4TccX0PumPDD4MrMgxIAVFPmmmlQOCmdpYP4tqZJ8xo189E5zk8lKF5OyaVYCs5SMmFC3cxCsKjfwGIexNu3ck5Uhwe9jI0tqgkgM3URA=
|
||||
- TRAVIS_CARGO_NIGHTLY_FEATURE=travis
|
||||
- secure: JLBlgHY6OEmhJ8woewNJHmuBokTNUv7/WvLkJGV8xk0t6bXBwSU0jNloXwlH7FiQTc4TccX0PumPDD4MrMgxIAVFPmmmlQOCmdpYP4tqZJ8xo189E5zk8lKF5OyaVYCs5SMmFC3cxCsKjfwGIexNu3ck5Uhwe9jI0tqgkgM3URA=
|
||||
|
|
|
@ -72,6 +72,7 @@
|
|||
* **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**
|
||||
* `ArgMatches::values_of` returns an `Values` now which implements `Iterator` (should not break any code)
|
||||
* `crate_version!` returns `&'static str` instead of `String`
|
||||
* Using the `clap_app!` macro requires compiling with the `unstable` feature because the syntax could change slightly in the future
|
||||
|
||||
|
||||
<a name="v1.5.5"></a>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
[package]
|
||||
|
||||
name = "clap"
|
||||
version = "2.0.0"
|
||||
version = "2.0.1"
|
||||
authors = ["Kevin K. <kbknapp@gmail.com>"]
|
||||
exclude = ["examples/*", "clap-tests/*", "tests/*", "benches/*", "*.png", "clap-perf/*"]
|
||||
description = "A simple to use, efficient, and full featured Command Line Argument Parser"
|
||||
|
@ -26,8 +26,9 @@ color = ["ansi_term"]
|
|||
yaml = ["yaml-rust"]
|
||||
lints = ["clippy", "nightly"]
|
||||
nightly = [] # for building with nightly and unstable features
|
||||
unstable = ["lints", "nightly"] # for building with travis-cargo
|
||||
unstable = [] # for building with unstable features on stable Rust
|
||||
debug = [] # for building with debug messages
|
||||
travis = ["lints", "nightly"] # for building with travis-cargo
|
||||
|
||||
[profile.release]
|
||||
opt-level = 3
|
||||
|
|
|
@ -103,6 +103,7 @@ Below is a list of breaking changes between 1.x and 2.x and how you can change y
|
|||
* **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**
|
||||
* `ArgMatches::values_of` returns an `Values` now which implements `Iterator` (should not break any code)
|
||||
* `crate_version!` returns `&'static str` instead of `String`
|
||||
* Using the `clap_app!` macro requires compiling with the `unstable` feature because the syntax could change slightly in the future
|
||||
|
||||
For full details, see [CHANGELOG.md](https://github.com/kbknapp/clap-rs/blob/master/CHANGELOG.md)
|
||||
|
||||
|
@ -602,6 +603,7 @@ As of 2.0.0 (From 1.x)
|
|||
* **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**
|
||||
* `ArgMatches::values_of` returns an `Values` now which implements `Iterator` (should not break any code)
|
||||
* `crate_version!` returns `&'static str` instead of `String`
|
||||
* Using the `clap_app!` macro requires compiling with the `unstable` feature because the syntax could change slightly in the future
|
||||
|
||||
### Deprecations
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue