mirror of
https://github.com/clap-rs/clap
synced 2024-11-10 06:44:16 +00:00
Release 3.0.0-beta.2
clap@3.0.0-beta.2 clap_derive@3.0.0-beta.2 clap_generate@3.0.0-beta.2 Generated by cargo-workspaces
This commit is contained in:
parent
34c2c1ae29
commit
d881a1185b
10 changed files with 21 additions and 18 deletions
|
@ -32,7 +32,7 @@ stages:
|
|||
displayName: Checkout repository
|
||||
- script: rustup default $(rust)-$(target)
|
||||
displayName: Install rust
|
||||
- script: cargo test --no-default-features --features "std cargo" -p clap:3.0.0-beta.1
|
||||
- script: cargo test --no-default-features --features "std cargo" -p clap:3.0.0-beta.2
|
||||
displayName: Test with almost no features
|
||||
- script: cargo test --features "yaml unstable"
|
||||
displayName: Test with most features
|
||||
|
|
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
|
@ -82,7 +82,7 @@ jobs:
|
|||
if: matrix.features == 'none'
|
||||
with:
|
||||
command: test
|
||||
args: --target ${{ matrix.target }} --no-default-features --features "std cargo" -p clap:3.0.0-beta.1
|
||||
args: --target ${{ matrix.target }} --no-default-features --features "std cargo" -p clap:3.0.0-beta.2
|
||||
- name: Test all features
|
||||
uses: actions-rs/cargo@v1
|
||||
if: matrix.features == 'all'
|
||||
|
|
|
@ -33,7 +33,7 @@ jobs:
|
|||
- rust: nightly
|
||||
cache: false
|
||||
script:
|
||||
- cargo test --no-default-features --features "std cargo" -p clap:3.0.0-beta.1
|
||||
- cargo test --no-default-features --features "std cargo" -p clap:3.0.0-beta.2
|
||||
- cargo test --features "yaml unstable doc"
|
||||
- name: Linting (fmt + clippy)
|
||||
before_script:
|
||||
|
@ -58,7 +58,7 @@ jobs:
|
|||
script:
|
||||
- cargo tarpaulin --workspace --features "yaml unstable" --ciserver travis-ci --coveralls $TRAVIS_JOB_ID --timeout 300
|
||||
script:
|
||||
- cargo test --no-default-features --features "std cargo" -p clap:3.0.0-beta.1
|
||||
- cargo test --no-default-features --features "std cargo" -p clap:3.0.0-beta.2
|
||||
- cargo test --features "yaml unstable"
|
||||
notifications:
|
||||
email: false
|
||||
|
|
|
@ -4,6 +4,9 @@ TODO: Structopt and traits
|
|||
TODO: `Shell`, `YamlLoader`
|
||||
TODO: `cargo`, `std` features
|
||||
|
||||
<a name="v3.0.0-beta.2"></a>
|
||||
## v3.0.0-beta.2 (2020-09-18)
|
||||
|
||||
#### BREAKING CHANGES
|
||||
|
||||
* **Removed**
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[package]
|
||||
name = "clap"
|
||||
version = "3.0.0-beta.1"
|
||||
version = "3.0.0-beta.2"
|
||||
edition = "2018"
|
||||
authors = [
|
||||
"Kevin K. <kbknapp@gmail.com>",
|
||||
|
@ -77,7 +77,7 @@ atty = { version = "0.2", optional = true }
|
|||
termcolor = { version = "1.1", optional = true }
|
||||
terminal_size = { version = "0.1.12", optional = true }
|
||||
lazy_static = { version = "1", optional = true }
|
||||
clap_derive = { path = "./clap_derive", version = "3.0.0-beta.1", optional = true }
|
||||
clap_derive = { path = "./clap_derive", version = "3.0.0-beta.2", optional = true }
|
||||
regex = { version = "1.0", optional = true }
|
||||
|
||||
[dev-dependencies]
|
||||
|
|
14
README.md
14
README.md
|
@ -17,7 +17,7 @@ It is a simple-to-use, efficient, and full-featured library for parsing command
|
|||
* [Questions & Discussions](https://github.com/clap-rs/clap/discussions)
|
||||
* [Website](https://clap.rs/)
|
||||
|
||||
We are currently hard at work trying to release `3.0`. We have a `3.0.0-beta.1` prerelease out but we do not give any guarantees that it's API is stable. We do not have a changelog yet which will be written down after we are sure about the API stability. We recommend users to not update to the prerelease version yet and to wait for the official `3.0`.
|
||||
We are currently hard at work trying to release `3.0`. We have a `3.0.0-beta.2` prerelease out but we do not give any guarantees that it's API is stable. We do not have a changelog yet which will be written down after we are sure about the API stability. We recommend users to not update to the prerelease version yet and to wait for the official `3.0`.
|
||||
|
||||
> If you're looking for the readme & examples for `clap v2.33` - find it on [github](https://github.com/clap-rs/clap/tree/v2.33.0), [crates.io](https://crates.io/crates/clap/2.33.0), [docs.rs](https://docs.rs/clap/2.33.0/clap/).
|
||||
|
||||
|
@ -123,7 +123,7 @@ Add `clap` to your `Cargo.toml`
|
|||
|
||||
```toml
|
||||
[dependencies]
|
||||
clap = "3.0.0-beta.1"
|
||||
clap = "3.0.0-beta.2"
|
||||
```
|
||||
|
||||
#### Using Derive Macros
|
||||
|
@ -315,7 +315,7 @@ Simply add the `yaml` feature flag to your `Cargo.toml`.
|
|||
|
||||
```toml
|
||||
[dependencies]
|
||||
clap = { version = "3.0.0-beta.1", features = ["yaml"] }
|
||||
clap = { version = "3.0.0-beta.2", features = ["yaml"] }
|
||||
```
|
||||
|
||||
Finally we create our `main.rs` file just like we would have with the previous two examples:
|
||||
|
@ -421,7 +421,7 @@ For full usage, add `clap` as a dependency in your `Cargo.toml` to use from crat
|
|||
|
||||
```toml
|
||||
[dependencies]
|
||||
clap = "3.0.0-beta.1"
|
||||
clap = "3.0.0-beta.2"
|
||||
```
|
||||
|
||||
Define a list of valid arguments for your program (see the [documentation][docs] or [examples][examples] directory of this repo)
|
||||
|
@ -440,7 +440,7 @@ To disable these, add this to your `Cargo.toml`:
|
|||
|
||||
```toml
|
||||
[dependencies.clap]
|
||||
version = "3.0.0-beta.1"
|
||||
version = "3.0.0-beta.2"
|
||||
default-features = false
|
||||
```
|
||||
|
||||
|
@ -448,7 +448,7 @@ You can also selectively enable only the features you'd like to include, by addi
|
|||
|
||||
```toml
|
||||
[dependencies.clap]
|
||||
version = "3.0.0-beta.1"
|
||||
version = "3.0.0-beta.2"
|
||||
default-features = false
|
||||
|
||||
# Cherry-pick the features you'd like to use
|
||||
|
@ -503,7 +503,7 @@ In order to keep from being surprised of breaking changes, it is **highly** reco
|
|||
|
||||
```toml
|
||||
[dependencies]
|
||||
clap = "~3.0.0-beta.1"
|
||||
clap = "~3.0.0-beta.2"
|
||||
```
|
||||
|
||||
This will cause *only* the patch version to be updated upon a `cargo update` call, and therefore cannot break due to new features, or bumped minimum versions of Rust.
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[package]
|
||||
name = "clap_derive"
|
||||
version = "3.0.0-beta.1"
|
||||
version = "3.0.0-beta.2"
|
||||
edition = "2018"
|
||||
authors = [
|
||||
"Guillaume Pinot <texitoi@texitoi.eu>",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[package]
|
||||
name = "clap_generate"
|
||||
version = "3.0.0-beta.1"
|
||||
version = "3.0.0-beta.2"
|
||||
edition = "2018"
|
||||
authors = [
|
||||
"Kevin K. <kbknapp@gmail.com>",
|
||||
|
@ -35,7 +35,7 @@ is-it-maintained-open-issues = { repository = "clap-rs/clap" }
|
|||
maintenance = {status = "actively-developed"}
|
||||
|
||||
[dependencies]
|
||||
clap = { path = "../", version = "3.0.0-beta.1" }
|
||||
clap = { path = "../", version = "3.0.0-beta.2" }
|
||||
|
||||
[dev-dependencies]
|
||||
pretty_assertions = "0.6"
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
//! Generates stuff for [`clap`](https://github.com/clap-rs/clap) based CLIs
|
||||
|
||||
#![doc(html_root_url = "https://docs.rs/clap_generate/3.0.0-beta.1")]
|
||||
#![doc(html_root_url = "https://docs.rs/clap_generate/3.0.0-beta.2")]
|
||||
#![deny(
|
||||
missing_docs,
|
||||
trivial_casts,
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
// notice may not be copied, modified, or distributed except according to those terms.
|
||||
|
||||
#![cfg_attr(feature = "doc", feature(external_doc))]
|
||||
#![doc(html_root_url = "https://docs.rs/clap/3.0.0-beta.1")]
|
||||
#![doc(html_root_url = "https://docs.rs/clap/3.0.0-beta.2")]
|
||||
#![cfg_attr(feature = "doc", doc(include = "../README.md"))]
|
||||
//! https://github.com/clap-rs/clap
|
||||
#![crate_type = "lib"]
|
||||
|
|
Loading…
Reference in a new issue