Skip to content

Commit 129375f

Browse files
authored
Update cargo dependencies (#3004)
This is to fix recent bookrunner failures, such as https://github.com/model-checking/kani/actions/runs/7813237161/job/21311963018?pr=2996 mdbook-graphviz should be re-instated once its dependency chain has been fixed.
1 parent a82bad4 commit 129375f

File tree

13 files changed

+84
-73
lines changed

13 files changed

+84
-73
lines changed

Cargo.lock

Lines changed: 58 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@ dependencies = [
4848

4949
[[package]]
5050
name = "anstyle"
51-
version = "1.0.5"
51+
version = "1.0.6"
5252
source = "registry+https://github.com/rust-lang/crates.io-index"
53-
checksum = "2faccea4cc4ab4a667ce676a30e8ec13922a692c99bb8f5b11f1502c72e04220"
53+
checksum = "8901269c6307e8d93993578286ac0edf7f195079ffff5ebdeea6a59ffb7e36bc"
5454

5555
[[package]]
5656
name = "anstyle-parse"
@@ -67,7 +67,7 @@ version = "1.0.2"
6767
source = "registry+https://github.com/rust-lang/crates.io-index"
6868
checksum = "e28923312444cdd728e4738b3f9c9cac739500909bb3d3c94b43551b16517648"
6969
dependencies = [
70-
"windows-sys 0.52.0",
70+
"windows-sys",
7171
]
7272

7373
[[package]]
@@ -77,7 +77,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
7777
checksum = "1cd54b81ec8d6180e24654d0b371ad22fc3dd083b6ff8ba325b72e00c87660a7"
7878
dependencies = [
7979
"anstyle",
80-
"windows-sys 0.52.0",
80+
"windows-sys",
8181
]
8282

8383
[[package]]
@@ -110,6 +110,7 @@ version = "0.1.0"
110110
dependencies = [
111111
"Inflector",
112112
"pulldown-cmark",
113+
"pulldown-cmark-escape",
113114
"rustdoc",
114115
"serde",
115116
"serde_json",
@@ -218,8 +219,8 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
218219
checksum = "7c64043d6c7b7a4c58e39e7efccfdea7b93d885a795d0c054a69dbbf4dd52686"
219220
dependencies = [
220221
"crossterm",
221-
"strum",
222-
"strum_macros",
222+
"strum 0.25.0",
223+
"strum_macros 0.25.3",
223224
"unicode-width",
224225
]
225226

@@ -250,7 +251,7 @@ dependencies = [
250251
"lazy_static",
251252
"libc",
252253
"unicode-width",
253-
"windows-sys 0.52.0",
254+
"windows-sys",
254255
]
255256

256257
[[package]]
@@ -340,7 +341,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
340341
checksum = "a258e46cdc063eb8519c00b9fc845fc47bcfca4130e2f08e88665ceda8474245"
341342
dependencies = [
342343
"libc",
343-
"windows-sys 0.52.0",
344+
"windows-sys",
344345
]
345346

346347
[[package]]
@@ -402,7 +403,7 @@ version = "0.5.9"
402403
source = "registry+https://github.com/rust-lang/crates.io-index"
403404
checksum = "e3d1354bf6b7235cb4a0576c2619fd4ed18183f689b12b006a0ee7329eeff9a5"
404405
dependencies = [
405-
"windows-sys 0.52.0",
406+
"windows-sys",
406407
]
407408

408409
[[package]]
@@ -452,8 +453,8 @@ dependencies = [
452453
"serde",
453454
"serde_json",
454455
"shell-words",
455-
"strum",
456-
"strum_macros",
456+
"strum 0.26.1",
457+
"strum_macros 0.26.1",
457458
"tracing",
458459
"tracing-subscriber",
459460
]
@@ -477,8 +478,8 @@ dependencies = [
477478
"rustc-demangle",
478479
"serde",
479480
"serde_json",
480-
"strum",
481-
"strum_macros",
481+
"strum 0.26.1",
482+
"strum_macros 0.26.1",
482483
"tempfile",
483484
"toml",
484485
"tracing",
@@ -512,8 +513,8 @@ dependencies = [
512513
"clap",
513514
"cprover_bindings",
514515
"serde",
515-
"strum",
516-
"strum_macros",
516+
"strum 0.26.1",
517+
"strum_macros 0.26.1",
517518
]
518519

519520
[[package]]
@@ -618,9 +619,9 @@ dependencies = [
618619

619620
[[package]]
620621
name = "num-complex"
621-
version = "0.4.4"
622+
version = "0.4.5"
622623
source = "registry+https://github.com/rust-lang/crates.io-index"
623-
checksum = "1ba157ca0885411de85d6ca030ba7e2a83a28636056c7c699b07c8b6f7383214"
624+
checksum = "23c6602fda94a57c990fe0df199a035d83576b496aa29f4e634a8ac6004e68a6"
624625
dependencies = [
625626
"num-traits",
626627
]
@@ -765,15 +766,21 @@ dependencies = [
765766

766767
[[package]]
767768
name = "pulldown-cmark"
768-
version = "0.9.6"
769+
version = "0.10.0"
769770
source = "registry+https://github.com/rust-lang/crates.io-index"
770-
checksum = "57206b407293d2bcd3af849ce869d52068623f19e1b5ff8e8778e3309439682b"
771+
checksum = "dce76ce678ffc8e5675b22aa1405de0b7037e2fdf8913fea40d1926c6fe1e6e7"
771772
dependencies = [
772773
"bitflags 2.4.2",
773774
"memchr",
774775
"unicase",
775776
]
776777

778+
[[package]]
779+
name = "pulldown-cmark-escape"
780+
version = "0.10.0"
781+
source = "registry+https://github.com/rust-lang/crates.io-index"
782+
checksum = "d5d8f9aa0e3cbcfaf8bf00300004ee3b72f74770f9cbac93f6928771f613276b"
783+
777784
[[package]]
778785
name = "quote"
779786
version = "1.0.35"
@@ -909,7 +916,7 @@ dependencies = [
909916
"errno",
910917
"libc",
911918
"linux-raw-sys",
912-
"windows-sys 0.52.0",
919+
"windows-sys",
913920
]
914921

915922
[[package]]
@@ -1061,6 +1068,12 @@ version = "0.25.0"
10611068
source = "registry+https://github.com/rust-lang/crates.io-index"
10621069
checksum = "290d54ea6f91c969195bdbcd7442c8c2a2ba87da8bf60a7ee86a235d4bc1e125"
10631070

1071+
[[package]]
1072+
name = "strum"
1073+
version = "0.26.1"
1074+
source = "registry+https://github.com/rust-lang/crates.io-index"
1075+
checksum = "723b93e8addf9aa965ebe2d11da6d7540fa2283fcea14b3371ff055f7ba13f5f"
1076+
10641077
[[package]]
10651078
name = "strum_macros"
10661079
version = "0.25.3"
@@ -1074,6 +1087,19 @@ dependencies = [
10741087
"syn 2.0.48",
10751088
]
10761089

1090+
[[package]]
1091+
name = "strum_macros"
1092+
version = "0.26.1"
1093+
source = "registry+https://github.com/rust-lang/crates.io-index"
1094+
checksum = "7a3417fc93d76740d974a01654a09777cb500428cc874ca9f45edfe0c4d4cd18"
1095+
dependencies = [
1096+
"heck",
1097+
"proc-macro2",
1098+
"quote",
1099+
"rustversion",
1100+
"syn 2.0.48",
1101+
]
1102+
10771103
[[package]]
10781104
name = "syn"
10791105
version = "1.0.109"
@@ -1097,15 +1123,14 @@ dependencies = [
10971123

10981124
[[package]]
10991125
name = "tempfile"
1100-
version = "3.9.0"
1126+
version = "3.10.0"
11011127
source = "registry+https://github.com/rust-lang/crates.io-index"
1102-
checksum = "01ce4141aa927a6d1bd34a041795abd0db1cccba5d5f24b009f694bdf3a1f3fa"
1128+
checksum = "a365e8cd18e44762ef95d87f284f4b5cd04107fec2ff3052bd6a3e6069669e67"
11031129
dependencies = [
11041130
"cfg-if",
11051131
"fastrand",
1106-
"redox_syscall",
11071132
"rustix",
1108-
"windows-sys 0.52.0",
1133+
"windows-sys",
11091134
]
11101135

11111136
[[package]]
@@ -1140,9 +1165,9 @@ dependencies = [
11401165

11411166
[[package]]
11421167
name = "toml"
1143-
version = "0.8.9"
1168+
version = "0.8.10"
11441169
source = "registry+https://github.com/rust-lang/crates.io-index"
1145-
checksum = "c6a4b9e8023eb94392d3dca65d717c53abc5dad49c07cb65bb8fcd87115fa325"
1170+
checksum = "9a9aad4a3066010876e8dcf5a8a06e70a558751117a145c6ce2b82c2e2054290"
11461171
dependencies = [
11471172
"serde",
11481173
"serde_spanned",
@@ -1161,9 +1186,9 @@ dependencies = [
11611186

11621187
[[package]]
11631188
name = "toml_edit"
1164-
version = "0.21.1"
1189+
version = "0.22.4"
11651190
source = "registry+https://github.com/rust-lang/crates.io-index"
1166-
checksum = "6a8534fd7f78b5405e860340ad6575217ce99f38d4d5c8f2442cb5ecb50090e1"
1191+
checksum = "0c9ffdf896f8daaabf9b66ba8e77ea1ed5ed0f72821b398aba62352e95062951"
11671192
dependencies = [
11681193
"indexmap",
11691194
"serde",
@@ -1319,15 +1344,15 @@ checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423"
13191344

13201345
[[package]]
13211346
name = "which"
1322-
version = "5.0.0"
1347+
version = "6.0.0"
13231348
source = "registry+https://github.com/rust-lang/crates.io-index"
1324-
checksum = "9bf3ea8596f3a0dd5980b46430f2058dfe2c36a27ccfbb1845d6fbfcd9ba6e14"
1349+
checksum = "7fa5e0c10bf77f44aac573e498d1a82d5fbd5e91f6fc0a99e7be4b38e85e101c"
13251350
dependencies = [
13261351
"either",
13271352
"home",
13281353
"once_cell",
13291354
"rustix",
1330-
"windows-sys 0.48.0",
1355+
"windows-sys",
13311356
]
13321357

13331358
[[package]]
@@ -1361,15 +1386,6 @@ version = "0.4.0"
13611386
source = "registry+https://github.com/rust-lang/crates.io-index"
13621387
checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f"
13631388

1364-
[[package]]
1365-
name = "windows-sys"
1366-
version = "0.48.0"
1367-
source = "registry+https://github.com/rust-lang/crates.io-index"
1368-
checksum = "677d2418bec65e3338edb076e806bc1ec15693c5d0104683f2efe857f61056a9"
1369-
dependencies = [
1370-
"windows-targets 0.48.5",
1371-
]
1372-
13731389
[[package]]
13741390
name = "windows-sys"
13751391
version = "0.52.0"
@@ -1495,9 +1511,9 @@ checksum = "dff9641d1cd4be8d1a070daf9e3773c5f67e78b4d9d42263020c057706765c04"
14951511

14961512
[[package]]
14971513
name = "winnow"
1498-
version = "0.5.37"
1514+
version = "0.5.39"
14991515
source = "registry+https://github.com/rust-lang/crates.io-index"
1500-
checksum = "a7cad8365489051ae9f054164e459304af2e7e9bb407c958076c8bf4aef52da5"
1516+
checksum = "5389a154b01683d28c77f8f68f49dea75f0a4da32557a58f68ee51ebba472d29"
15011517
dependencies = [
15021518
"memchr",
15031519
]

kani-compiler/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ num = { version = "0.4.0", optional = true }
1919
regex = "1.7.0"
2020
serde = { version = "1", optional = true }
2121
serde_json = "1"
22-
strum = "0.25.0"
23-
strum_macros = "0.25.2"
22+
strum = "0.26"
23+
strum_macros = "0.26"
2424
shell-words = "1.0.0"
2525
tracing = {version = "0.1", features = ["max_level_trace", "release_max_level_debug"]}
2626
tracing-subscriber = {version = "0.3.8", features = ["env-filter", "json", "fmt"]}

kani-compiler/src/args.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
// Copyright Kani Contributors
22
// SPDX-License-Identifier: Apache-2.0 OR MIT
33

4-
use strum_macros::{AsRefStr, EnumString, EnumVariantNames};
4+
use strum_macros::{AsRefStr, EnumString, VariantNames};
55
use tracing_subscriber::filter::Directive;
66

7-
#[derive(Debug, Default, Clone, Copy, AsRefStr, EnumString, EnumVariantNames, PartialEq, Eq)]
7+
#[derive(Debug, Default, Clone, Copy, AsRefStr, EnumString, VariantNames, PartialEq, Eq)]
88
#[strum(serialize_all = "snake_case")]
99
pub enum ReachabilityType {
1010
/// Start the cross-crate reachability analysis from all harnesses in the local crate.

kani-driver/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,13 @@ rustc-demangle = "0.1.21"
2727
pathdiff = "0.2.1"
2828
rayon = "1.5.3"
2929
comfy-table = "7.0.1"
30-
strum = {version = "0.25.0"}
31-
strum_macros = {version = "0.25.2"}
30+
strum = {version = "0.26"}
31+
strum_macros = {version = "0.26"}
3232
tempfile = "3"
3333
tracing = {version = "0.1", features = ["max_level_trace", "release_max_level_debug"]}
3434
tracing-subscriber = {version = "0.3.8", features = ["env-filter", "json", "fmt"]}
3535
rand = "0.8"
36-
which = "5.0.0"
36+
which = "6"
3737

3838
# A good set of suggested dependencies can be found in rustup:
3939
# https://github.com/rust-lang/rustup/blob/master/Cargo.toml

kani_metadata/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@ publish = false
1313
[dependencies]
1414
serde = {version = "1", features = ["derive"]}
1515
cbmc = { path = "../cprover_bindings", package = "cprover_bindings" }
16-
strum = "0.25.0"
17-
strum_macros = "0.25.2"
16+
strum = "0.26"
17+
strum_macros = "0.26"
1818
clap = { version = "4.4.11", features = ["derive"] }

kani_metadata/src/cbmc_solver.rs

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,12 @@
22
// SPDX-License-Identifier: Apache-2.0 OR MIT
33

44
use serde::{Deserialize, Serialize};
5-
use strum_macros::{AsRefStr, EnumString, EnumVariantNames};
5+
use strum_macros::{AsRefStr, EnumString, VariantNames};
66

77
/// An enum for CBMC solver options. All variants are handled by Kani, except for
88
/// the `Binary` one, which it passes as is to CBMC's `--external-sat-solver`
99
/// option.
10-
#[derive(
11-
Debug,
12-
Clone,
13-
AsRefStr,
14-
EnumString,
15-
EnumVariantNames,
16-
PartialEq,
17-
Eq,
18-
Serialize,
19-
Deserialize
20-
)]
10+
#[derive(Debug, Clone, AsRefStr, EnumString, VariantNames, PartialEq, Eq, Serialize, Deserialize)]
2111
#[strum(serialize_all = "snake_case")]
2212
pub enum CbmcSolver {
2313
/// CaDiCaL which is available in CBMC as of version 5.77.0

scripts/setup/ubuntu/install_doc_deps.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@
44

55
set -eux
66

7-
cargo install mdbook-graphviz
7+
# cargo install mdbook-graphviz
88
DEBIAN_FRONTEND=noninteractive sudo apt-get install --no-install-recommends --yes graphviz

tools/bookrunner/Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ publish = false
1010

1111
[dependencies]
1212
Inflector = "0.11.4"
13-
pulldown-cmark = { version = "0.9", default-features = false }
13+
pulldown-cmark = { version = "0.10", default-features = false }
14+
pulldown-cmark-escape = { version = "0.10", default-features = false }
1415
rustdoc = { path = "librustdoc" }
1516
walkdir = "2.3.2"
1617
serde = { version = "1.0", features = ["derive"] }

tools/bookrunner/librustdoc/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ publish = false
2020
path = "lib.rs"
2121

2222
[dependencies]
23-
pulldown-cmark = { version = "0.9", default-features = false }
23+
pulldown-cmark = { version = "0.10", default-features = false }
2424

2525
[package.metadata.rust-analyzer]
2626
rustc_private = true

tools/bookrunner/librustdoc/html/markdown.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ pub fn find_testable_code<T: doctest::Tester>(
122122
tests.add_test(text, block_info, line);
123123
prev_offset = offset.start;
124124
}
125-
Event::Start(Tag::Heading(level, _, _)) => {
125+
Event::Start(Tag::Heading { level, .. }) => {
126126
register_header = Some(level as u32);
127127
}
128128
Event::Text(ref s) if register_header.is_some() => {

0 commit comments

Comments
 (0)