Skip to content

Commit f9889a8

Browse files
committed
chore(pact-verifier): Update all dependencies and set rustls-no-provider
1 parent f4e1fab commit f9889a8

2 files changed

Lines changed: 29 additions & 25 deletions

File tree

rust/pact_verifier/Cargo.toml

Lines changed: 26 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -23,48 +23,49 @@ multipart = ["pact_matching/multipart"] # suport for MIME multipart bodies
2323

2424
[dependencies]
2525
ansi_term = "0.12.1"
26-
anyhow = "1.0.101"
27-
async-trait = "0.1.89"
28-
base64 = "0.22.1"
29-
bytes = "1.11.1"
26+
anyhow = "1.0.104"
27+
async-trait = "0.1.91"
28+
base64 = "0.23.0"
29+
bytes = "1.12.1"
3030
difference = "2.0.0"
31-
futures = "0.3.32"
32-
http = "1.4.0"
33-
humantime = "2.3.0"
34-
itertools = "0.14.0"
31+
futures = "0.3.33"
32+
http = "1.5.0"
33+
humantime = "2.4.0"
34+
itertools = "0.15.0"
3535
lazy_static = "1.5.0"
3636
maplit = "1.0.2"
3737
mime = "0.3.17"
3838
pact_matching = { version = "~2.0.9", path = "../pact_matching", default-features = false }
3939
pact_models = { version = "~1.3.13", default-features = false }
4040
pact-plugin-driver = { version = "~1.1.1", optional = true, default-features = false }
41-
uuid = { version = "1.0", features = ["v4"], optional = true }
42-
regex = "1.12.3"
43-
httpdate = "1.0"
44-
reqwest = { version = "0.13", default-features = false, features = ["rustls", "blocking", "json", "query"] }
45-
serde = "1.0.228"
46-
serde_json = "1.0.149"
47-
serde_with = { version = "3.16.1", features = ["json"] }
48-
thiserror = "2.0.18"
49-
tokio = { version = "1.49.0", features = ["full"] }
41+
uuid = { version = "1.24.0", features = ["v4"], optional = true }
42+
regex = "1.13.1"
43+
httpdate = "1.0.3"
44+
reqwest = { version = "0.13.4", default-features = false, features = ["rustls-no-provider", "blocking", "json", "query"] }
45+
serde = "1.0.229"
46+
serde_json = "1.0.151"
47+
serde_with = { version = "3.21.0", features = ["json"] }
48+
thiserror = "2.0.19"
49+
tokio = { version = "1.53.1", features = ["full"] }
5050
tracing = "0.1.44"
5151
tracing-core = "0.1.36"
5252
url = "2.5.8"
5353
urlencoding = "2.1.3"
5454

5555
[lib]
56-
crate-type = ["cdylib", "rlib"]
56+
crate-type = ["rlib"]
5757

5858
[dev-dependencies]
59-
axum = "0.8"
60-
chrono = "0.4.43"
59+
axum = "0.8.9"
60+
chrono = "0.4.45"
6161
chrono-tz = "0.10.4"
62-
env_logger = "0.11.9"
62+
env_logger = "0.11.11"
6363
expectest = "0.12.0"
64-
pact_consumer = { version = "~1.4.7", path = "../pact_consumer" }
64+
pact_consumer = { version = "~1.4.8", path = "../pact_consumer" }
6565
pretty_assertions = "1.4.1"
6666
quickcheck = "1.1.0"
67-
insta = "1.43.1"
67+
insta = "1.48.0"
6868
rstest = "0.26.1"
69-
test-log = { version = "0.2.19", features = ["trace"] }
70-
tracing-subscriber = { version = "0.3.22", features = ["env-filter", "tracing-log", "fmt"] }
69+
rustls = { version = "0.23.43", features = ["ring"] }
70+
test-log = { version = "0.2.21", features = ["trace"] }
71+
tracing-subscriber = { version = "0.3.23", features = ["env-filter", "tracing-log", "fmt"] }

rust/pact_verifier/src/pact_broker.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1557,6 +1557,9 @@ mod tests {
15571557

15581558
#[test_log::test(tokio::test)]
15591559
async fn fetch_link_returns_an_error_if_a_previous_resource_has_not_been_fetched() {
1560+
rustls::crypto::ring::default_provider()
1561+
.install_default()
1562+
.expect("Failed to install rustls crypto provider");
15601563
let client = HALClientBuilder::builder().with_url("http://localhost", None).build();
15611564
let result = client.fetch_link("anything_will_do", &hashmap!{}).await;
15621565
expect!(result).to(be_err().value("No previous resource has been fetched from the pact broker. URL: 'http://localhost', LINK: 'anything_will_do'".to_string()));

0 commit comments

Comments
 (0)