From cf247baf77714787368c8814c45597be159eab10 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Fri, 21 Aug 2020 18:50:00 +1000 Subject: [PATCH] vendor reqwest for now, to support read/write timeouts https://github.com/seanmonstar/reqwest/issues/870 --- rslib/Cargo.toml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/rslib/Cargo.toml b/rslib/Cargo.toml index 571d51c94..1b90a7a3b 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"