From 62857cf86011f08e3c50c182726e0ece3e5f6d6a Mon Sep 17 00:00:00 2001 From: Byron Hambly Date: Mon, 25 Mar 2024 09:27:40 +0200 Subject: [PATCH] wip --- Cargo.lock | 23 ++++++++++++++++++++++- swap/Cargo.toml | 2 +- 2 files changed, 23 insertions(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index aeafd548..f5fdc7a1 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1488,6 +1488,25 @@ dependencies = [ "tracing", ] +[[package]] +name = "h2" +version = "0.4.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "51ee2dd2e4f378392eeff5d51618cd9a63166a2513846bbc55f21cfacd9199d4" +dependencies = [ + "bytes", + "fnv", + "futures-core", + "futures-sink", + "futures-util", + "http 1.0.0", + "indexmap 2.1.0", + "slab", + "tokio", + "tokio-util", + "tracing", +] + [[package]] name = "half" version = "1.7.1" @@ -1685,7 +1704,7 @@ dependencies = [ "futures-channel", "futures-core", "futures-util", - "h2", + "h2 0.3.18", "http 0.2.11", "http-body 0.4.0", "httparse", @@ -1707,6 +1726,7 @@ dependencies = [ "bytes", "futures-channel", "futures-util", + "h2 0.4.3", "http 1.0.0", "http-body 1.0.0", "httparse", @@ -3369,6 +3389,7 @@ dependencies = [ "bytes", "futures-core", "futures-util", + "h2 0.4.3", "http 1.0.0", "http-body 1.0.0", "http-body-util", diff --git a/swap/Cargo.toml b/swap/Cargo.toml index fb408a88..a9616b29 100644 --- a/swap/Cargo.toml +++ b/swap/Cargo.toml @@ -39,7 +39,7 @@ proptest = "1" qrcode = "0.14" rand = "0.8" rand_chacha = "0.3" -reqwest = { version = "0.12", features = [ "rustls-tls", "stream", "socks" ], default-features = false } +reqwest = { version = "0.12", features = [ "http2", "rustls-tls", "stream", "socks" ], default-features = false } rust_decimal = { version = "1", features = [ "serde-float" ] } rust_decimal_macros = "1" serde = { version = "1", features = [ "derive" ] }