From 7f15d06c58e756407d245e0adace5e4e7eb3a620 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Wed, 26 Aug 2020 13:24:51 +1000 Subject: [PATCH] vendor reqwest for now, to support read/write timeouts https://github.com/seanmonstar/reqwest/issues/870 adding back now that fix has been applied to a fork of tokio-io-timeout --- rslib/Cargo.toml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/rslib/Cargo.toml b/rslib/Cargo.toml index c59d32054..2d7a6c6a2 100644 --- a/rslib/Cargo.toml +++ b/rslib/Cargo.toml @@ -61,11 +61,15 @@ features = ["trace", "functions", "collation"] version = "0.23.1" features = ["trace", "functions", "collation", "bundled"] -[target.'cfg(linux)'.dependencies] -reqwest = { version = "0.10.6", features = ["json", "socks", "stream", "native-tls-vendored"] } +[target.'cfg(linux)'.dependencies.reqwest] +git = "https://github.com/ankitects/reqwest.git" +branch = "io-timeout" +features = ["json", "socks", "stream", "native-tls-vendored"] -[target.'cfg(not(linux))'.dependencies] -reqwest = { version = "0.10.6", features = ["json", "socks", "stream" ] } +[target.'cfg(not(linux))'.dependencies.reqwest] +git = "https://github.com/ankitects/reqwest.git" +branch = "io-timeout" +features = ["json", "socks", "stream"] [build-dependencies] prost-build = "0.6.1"