From eb5093c4d35908781b47884a6516573ba806e96a Mon Sep 17 00:00:00 2001 From: Wenxuan Zhang Date: Tue, 26 Mar 2024 23:20:04 +0800 Subject: [PATCH] chore: fix minimal-versions check Signed-off-by: Wenxuan Zhang --- Cargo.lock | 5 +++-- Cargo.toml | 16 ++++++++++------ 2 files changed, 13 insertions(+), 8 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 6cb80f2..81114be 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -239,9 +239,9 @@ checksum = "1fd0f2584146f6f2ef48085050886acf353beff7305ebd1ae69500e27c67f64b" [[package]] name = "bytes" -version = "1.5.0" +version = "1.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a2bd12c1caf447e69cd4528f47f94d203fd2582878ecb9e9465484c4148a8223" +checksum = "514de17de45fdb8dc022b1a7975556c53c86f9f0aa5f534b98977b171857c2c9" [[package]] name = "cassowary" @@ -1182,6 +1182,7 @@ dependencies = [ "hyper-tls", "hyper-util", "itertools", + "openssl", "rand", "ratatui", "serde", diff --git a/Cargo.toml b/Cargo.toml index 708c312..0db295c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -38,14 +38,18 @@ hdrhistogram = "7.5" itertools = "0.12" [dev-dependencies] -tokio = { version = "1.36", features = ["rt-multi-thread"] } -bytes = "1" -http-body-util = "0.1" -hyper = { version = "1.2", features = ["client"] } -hyper-tls = "0.6" -hyper-util = { version = "0.1", features = [ +tokio = { version = "1.36.0", features = ["rt-multi-thread"] } +bytes = "1.6.0" +http-body-util = "0.1.1" +hyper = { version = "1.2.0", features = ["client"] } +hyper-tls = "0.6.0" +hyper-util = { version = "0.1.3", features = [ "client", "client-legacy", "http1", "tokio", ] } + +# for minimal-versions +[target.'cfg(any())'.dependencies] +openssl = { version = "0.10.55", optional = true }