From e74859d5bcdd839ebc39881d3f8205b549fb8879 Mon Sep 17 00:00:00 2001 From: Joel Natividad <1980690+jqnatividad@users.noreply.github.com> Date: Sat, 23 Apr 2022 16:00:57 -0400 Subject: [PATCH] Use our fork of reqwest do so until the published version on crates.io is updated, so we can take advantage of unreleased features - most especially, updating `cookie` and `cookie-store` to 0.16.0, which removes the dependency on `time 0.2,27`, which in turn, has a dependency on `stdweb` which is unmaintained, partly resolving #167. This also streamlines the dependency tree, removing 15 crate dependencies --- Cargo.lock | 237 +++++++++++++++-------------------------------------- Cargo.toml | 2 +- 2 files changed, 67 insertions(+), 172 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 40bb9c4cf..49b220748 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -16,7 +16,7 @@ dependencies = [ "memchr", "pin-project-lite", "tokio", - "tokio-util 0.7.1", + "tokio-util", ] [[package]] @@ -256,12 +256,6 @@ version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d468802bab17cbc0cc575e9b053f41e72aa36bfa6b7f55e3529ffa43161b97fa" -[[package]] -name = "base-x" -version = "0.2.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a4521f3e3d031370679b3b140beb36dfe4801b09ac77e30c61941f97df3ef28b" - [[package]] name = "base64" version = "0.13.0" @@ -507,12 +501,6 @@ dependencies = [ "winapi", ] -[[package]] -name = "const_fn" -version = "0.4.9" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fbdcdcb6d86f71c5e97409ad45898af11cbc995b4ee8112d59095a28d376c935" - [[package]] name = "convert_case" version = "0.4.0" @@ -521,20 +509,20 @@ checksum = "6245d59a3e82a7fc217c5828a6692dbc6dfb63a0c8c90495621f7b9d79704a0e" [[package]] name = "cookie" -version = "0.15.1" +version = "0.16.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d5f1c7727e460397e56abc4bddc1d49e07a1ad78fc98eb2e1c8f032a58a2f80d" +checksum = "94d4706de1b0fa5b132270cddffa8585166037822e260a944fe161acd137ca05" dependencies = [ "percent-encoding", - "time 0.2.27", + "time 0.3.9", "version_check", ] [[package]] name = "cookie_store" -version = "0.15.1" +version = "0.16.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b3f7034c0932dc36f5bd8ec37368d971346809435824f277cb3b8299fc56167c" +checksum = "f83bfd36a664c5783fde601ab938bcd41c3e228c5eda1dfaae727a4a27bcb945" dependencies = [ "cookie", "idna", @@ -542,7 +530,7 @@ dependencies = [ "publicsuffix", "serde", "serde_json", - "time 0.2.27", + "time 0.3.9", "url", ] @@ -659,7 +647,7 @@ dependencies = [ [[package]] name = "csv" version = "1.1.6" -source = "git+https://github.com/jqnatividad/rust-csv#eb138d8a06fbcf4cc38b6b03d50ebd1e8b95932c" +source = "git+https://github.com/jqnatividad/rust-csv#96296170e5f6d6a77ea4ebf12adba14730890e93" dependencies = [ "bstr", "csv-core 0.1.10 (git+https://github.com/jqnatividad/rust-csv)", @@ -680,7 +668,7 @@ dependencies = [ [[package]] name = "csv-core" version = "0.1.10" -source = "git+https://github.com/jqnatividad/rust-csv#eb138d8a06fbcf4cc38b6b03d50ebd1e8b95932c" +source = "git+https://github.com/jqnatividad/rust-csv#96296170e5f6d6a77ea4ebf12adba14730890e93" dependencies = [ "memchr", ] @@ -688,7 +676,7 @@ dependencies = [ [[package]] name = "csv-index" version = "0.1.6" -source = "git+https://github.com/jqnatividad/rust-csv#eb138d8a06fbcf4cc38b6b03d50ebd1e8b95932c" +source = "git+https://github.com/jqnatividad/rust-csv#96296170e5f6d6a77ea4ebf12adba14730890e93" dependencies = [ "byteorder", "csv 1.1.6 (git+https://github.com/jqnatividad/rust-csv)", @@ -762,7 +750,7 @@ dependencies = [ "convert_case", "proc-macro2", "quote", - "rustc_version 0.4.0", + "rustc_version", "syn", ] @@ -785,12 +773,6 @@ dependencies = [ "crypto-common", ] -[[package]] -name = "discard" -version = "1.0.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "212d0f5754cb6769937f4501cc0e67f4f4483c8d2c3e1e922ee9edbe4ab4c7c0" - [[package]] name = "docopt" version = "1.1.1" @@ -1147,7 +1129,7 @@ dependencies = [ "indexmap", "slab", "tokio", - "tokio-util 0.7.1", + "tokio-util", "tracing", ] @@ -1382,7 +1364,7 @@ dependencies = [ "parking_lot 0.12.0", "percent-encoding", "regex", - "reqwest", + "reqwest 0.11.10 (registry+https://github.com/rust-lang/crates.io-index)", "serde", "serde_json", "time 0.3.9", @@ -2125,7 +2107,7 @@ dependencies = [ "rayon", "redis", "regex", - "reqwest", + "reqwest 0.11.10 (git+https://github.com/jqnatividad/reqwest)", "reverse_geocoder", "ryu", "self_update", @@ -2362,6 +2344,43 @@ name = "reqwest" version = "0.11.10" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "46a1f7aa4f35e5e8b4160449f51afc758f0ce6454315a9fa7d0d113e958c41eb" +dependencies = [ + "base64", + "bytes", + "encoding_rs", + "futures-core", + "futures-util", + "h2", + "http", + "http-body", + "hyper", + "hyper-rustls", + "ipnet", + "js-sys", + "lazy_static", + "log", + "mime", + "percent-encoding", + "pin-project-lite", + "rustls", + "rustls-pemfile 0.3.0", + "serde", + "serde_json", + "serde_urlencoded", + "tokio", + "tokio-rustls", + "url", + "wasm-bindgen", + "wasm-bindgen-futures", + "web-sys", + "webpki-roots", + "winreg", +] + +[[package]] +name = "reqwest" +version = "0.11.10" +source = "git+https://github.com/jqnatividad/reqwest#d24a5286c7bd101f82c90e39cb2ccc21ae854da8" dependencies = [ "async-compression", "base64", @@ -2385,13 +2404,14 @@ dependencies = [ "pin-project-lite", "proc-macro-hack", "rustls", - "rustls-pemfile", + "rustls-pemfile 1.0.0", "serde", "serde_json", "serde_urlencoded", "tokio", "tokio-rustls", - "tokio-util 0.6.9", + "tokio-util", + "tower-service", "url", "wasm-bindgen", "wasm-bindgen-futures", @@ -2433,15 +2453,6 @@ version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "08d43f7aa6b08d49f382cde6a7982047c3426db949b1424bc4b7ec9ae12c6ce2" -[[package]] -name = "rustc_version" -version = "0.2.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "138e3e0acb6c9fb258b19b67cb8abd63c00679d2851805ea151465464fe9030a" -dependencies = [ - "semver 0.9.0", -] - [[package]] name = "rustc_version" version = "0.4.0" @@ -2472,6 +2483,15 @@ dependencies = [ "base64", ] +[[package]] +name = "rustls-pemfile" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e7522c9de787ff061458fe9a829dc790a3f5b22dc571694fc5883f448b94d9a9" +dependencies = [ + "base64", +] + [[package]] name = "rustversion" version = "1.0.6" @@ -2520,29 +2540,20 @@ dependencies = [ "log", "quick-xml", "regex", - "reqwest", + "reqwest 0.11.10 (registry+https://github.com/rust-lang/crates.io-index)", "semver 0.11.0", "serde_json", "tempfile", "zip", ] -[[package]] -name = "semver" -version = "0.9.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1d7eb9ef2c18661902cc47e535f9bc51b78acd254da71d375c2f6720d9a40403" -dependencies = [ - "semver-parser 0.7.0", -] - [[package]] name = "semver" version = "0.11.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f301af10236f6df4160f7c3f04eec6dbc70ace82d23326abad5edee88801c6b6" dependencies = [ - "semver-parser 0.10.2", + "semver-parser", ] [[package]] @@ -2551,12 +2562,6 @@ version = "1.0.7" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d65bd28f48be7196d222d95b9243287f48d27aca604e08497513019ff0502cc4" -[[package]] -name = "semver-parser" -version = "0.7.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "388a1df253eca08550bef6c72392cfe7c30914bf41df5269b68cbd6ff8f570a3" - [[package]] name = "semver-parser" version = "0.10.2" @@ -2721,64 +2726,6 @@ version = "0.5.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6e63cff320ae2c57904679ba7cb63280a3dc4613885beafb148ee7bf9aa9042d" -[[package]] -name = "standback" -version = "0.2.17" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e113fb6f3de07a243d434a56ec6f186dfd51cb08448239fe7bcae73f87ff28ff" -dependencies = [ - "version_check", -] - -[[package]] -name = "stdweb" -version = "0.4.20" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d022496b16281348b52d0e30ae99e01a73d737b2f45d38fed4edf79f9325a1d5" -dependencies = [ - "discard", - "rustc_version 0.2.3", - "stdweb-derive", - "stdweb-internal-macros", - "stdweb-internal-runtime", - "wasm-bindgen", -] - -[[package]] -name = "stdweb-derive" -version = "0.5.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c87a60a40fccc84bef0652345bbbbbe20a605bf5d0ce81719fc476f5c03b50ef" -dependencies = [ - "proc-macro2", - "quote", - "serde", - "serde_derive", - "syn", -] - -[[package]] -name = "stdweb-internal-macros" -version = "0.2.9" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "58fa5ff6ad0d98d1ffa8cb115892b6e69d67799f6763e162a1c9db421dc22e11" -dependencies = [ - "base-x", - "proc-macro2", - "quote", - "serde", - "serde_derive", - "serde_json", - "sha1", - "syn", -] - -[[package]] -name = "stdweb-internal-runtime" -version = "0.1.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "213701ba3370744dcd1a12960caa4843b3d68b4d1c0a5d575e0d65b2ee9d16c0" - [[package]] name = "strsim" version = "0.10.0" @@ -2901,21 +2848,6 @@ dependencies = [ "winapi", ] -[[package]] -name = "time" -version = "0.2.27" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4752a97f8eebd6854ff91f1c1824cd6160626ac4bd44287f7f4ea2035a02a242" -dependencies = [ - "const_fn", - "libc", - "standback", - "stdweb", - "time-macros 0.1.1", - "version_check", - "winapi", -] - [[package]] name = "time" version = "0.3.9" @@ -2925,17 +2857,7 @@ dependencies = [ "itoa 1.0.1", "libc", "num_threads", - "time-macros 0.2.4", -] - -[[package]] -name = "time-macros" -version = "0.1.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "957e9c6e26f12cb6d0dd7fc776bb67a706312e7299aed74c8dd5b17ebb27e2f1" -dependencies = [ - "proc-macro-hack", - "time-macros-impl", + "time-macros", ] [[package]] @@ -2944,19 +2866,6 @@ version = "0.2.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "42657b1a6f4d817cda8e7a0ace261fe0cc946cf3a80314390b22cc61ae080792" -[[package]] -name = "time-macros-impl" -version = "0.1.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fd3c141a1b43194f3f56a1411225df8646c55781d5f26db825b3d98507eb482f" -dependencies = [ - "proc-macro-hack", - "proc-macro2", - "quote", - "standback", - "syn", -] - [[package]] name = "tinyvec" version = "1.5.1" @@ -3024,20 +2933,6 @@ dependencies = [ "webpki", ] -[[package]] -name = "tokio-util" -version = "0.6.9" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9e99e1983e5d376cd8eb4b66604d2e99e79f5bd988c3055891dcd8c9e2604cc0" -dependencies = [ - "bytes", - "futures-core", - "futures-sink", - "log", - "pin-project-lite", - "tokio", -] - [[package]] name = "tokio-util" version = "0.7.1" diff --git a/Cargo.toml b/Cargo.toml index 61cd62332..b5eb136ba 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -95,7 +95,7 @@ qsv_currency = { version = "0.5", optional = true } rand = "0.8" rayon = "1.5" regex = "1" -reqwest = { version = "0.11", features = [ +reqwest = { version = "0.11", git = "https://github.com/jqnatividad/reqwest", features = [ "blocking", "brotli", "cookies",