Skip to content

Commit

Permalink
Update kani-driver to use clap v4 (rust-lang#1935)
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronbembenek-aws authored Nov 24, 2022
1 parent 3d3fcee commit f957044
Show file tree
Hide file tree
Showing 6 changed files with 192 additions and 271 deletions.
97 changes: 6 additions & 91 deletions Cargo.lock
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,6 @@ dependencies = [
"memchr",
]

[[package]]
name = "ansi_term"
version = "0.12.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d52a9bb7ec0cf484c551830a7ce27bd20d67eac647e1befb56b0be4ee39a55d2"
dependencies = [
"winapi",
]

[[package]]
name = "anyhow"
version = "1.0.66"
Expand Down Expand Up @@ -95,7 +86,7 @@ version = "0.15.0"
dependencies = [
"anyhow",
"cargo_metadata",
"clap 4.0.26",
"clap",
"which",
]

Expand Down Expand Up @@ -137,21 +128,6 @@ version = "1.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"

[[package]]
name = "clap"
version = "2.34.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a0610544180c38b88101fecf2dd634b174a62eef6946f84dfc6a7127512b381c"
dependencies = [
"ansi_term",
"atty",
"bitflags",
"strsim 0.8.0",
"textwrap",
"unicode-width",
"vec_map",
]

[[package]]
name = "clap"
version = "4.0.26"
Expand All @@ -163,7 +139,7 @@ dependencies = [
"clap_derive",
"clap_lex",
"once_cell",
"strsim 0.10.0",
"strsim",
"termcolor",
]

Expand All @@ -173,7 +149,7 @@ version = "4.0.21"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0177313f9f02afc995627906bbd8967e2be069f5261954222dac78290c2b9014"
dependencies = [
"heck 0.4.0",
"heck",
"proc-macro-error",
"proc-macro2",
"quote",
Expand Down Expand Up @@ -378,15 +354,6 @@ dependencies = [
"ahash",
]

[[package]]
name = "heck"
version = "0.3.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6d621efb26863f0e9924c6ac577e8275e5e6b77455db64ffa6c65c904e9e132c"
dependencies = [
"unicode-segmentation",
]

[[package]]
name = "heck"
version = "0.4.0"
Expand Down Expand Up @@ -441,7 +408,7 @@ dependencies = [
"ar",
"atty",
"bitflags",
"clap 4.0.26",
"clap",
"cprover_bindings",
"home",
"kani_metadata",
Expand Down Expand Up @@ -469,7 +436,7 @@ dependencies = [
"anyhow",
"atty",
"cargo_metadata",
"clap 2.34.0",
"clap",
"comfy-table",
"console",
"glob",
Expand All @@ -481,7 +448,6 @@ dependencies = [
"rustc-demangle",
"serde",
"serde_json",
"structopt",
"toml",
"tracing",
"tracing-subscriber",
Expand Down Expand Up @@ -1039,42 +1005,12 @@ dependencies = [
"serde",
]

[[package]]
name = "strsim"
version = "0.8.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8ea5119cdb4c55b55d432abb513a0429384878c15dde60cc77b1c99de1a95a6a"

[[package]]
name = "strsim"
version = "0.10.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "73473c0e59e6d5812c5dfe2a064a6444949f089e20eec9a2e5506596494e4623"

[[package]]
name = "structopt"
version = "0.3.26"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0c6b5c64445ba8094a6ab0c3cd2ad323e07171012d9c98b0b15651daf1787a10"
dependencies = [
"clap 2.34.0",
"lazy_static",
"structopt-derive",
]

[[package]]
name = "structopt-derive"
version = "0.4.18"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "dcb5ae327f9cc13b68763b5749770cb9e048a99bd9dfdfa58d0cf05d5f64afe0"
dependencies = [
"heck 0.3.3",
"proc-macro-error",
"proc-macro2",
"quote",
"syn",
]

[[package]]
name = "strum"
version = "0.24.1"
Expand All @@ -1087,7 +1023,7 @@ version = "0.24.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1e385be0d24f186b4ce2f9982191e7101bb737312ad61c1f2f984f34bcf85d59"
dependencies = [
"heck 0.4.0",
"heck",
"proc-macro2",
"quote",
"rustversion",
Expand Down Expand Up @@ -1124,15 +1060,6 @@ dependencies = [
"winapi",
]

[[package]]
name = "textwrap"
version = "0.11.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d326610f408c7a4eb6f51c37c330e496b08506c9457c9d34287ecc38809fb060"
dependencies = [
"unicode-width",
]

[[package]]
name = "thiserror"
version = "1.0.37"
Expand Down Expand Up @@ -1275,12 +1202,6 @@ version = "1.0.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6ceab39d59e4c9499d4e5a8ee0e2735b891bb7308ac83dfb4e80cad195c9f6f3"

[[package]]
name = "unicode-segmentation"
version = "1.10.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0fdbf052a0783de01e944a6ce7a8cb939e295b1e7be835a1112c3b9a7f047a5a"

[[package]]
name = "unicode-width"
version = "0.1.10"
Expand All @@ -1293,12 +1214,6 @@ version = "0.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "830b7e5d4d90034032940e4ace0d9a9a057e7a45cd94e6c007832e39edb82f6d"

[[package]]
name = "vec_map"
version = "0.8.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f1bddf1187be692e79c5ffeab891132dfb0f236ed36a43c7ed39f1165ee20191"

[[package]]
name = "version_check"
version = "0.9.4"
Expand Down
3 changes: 1 addition & 2 deletions kani-driver/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ console = "0.15.1"
once_cell = "1.13.0"
serde = { version = "1", features = ["derive"] }
serde_json = "1"
structopt = "0.3"
clap = "2.34"
clap = { version = "4.0.26", features = ["derive"] }
glob = "0.3"
toml = "0.5"
regex = "1.6"
Expand Down
Loading

0 comments on commit f957044

Please sign in to comment.