From ab20f2c4918a0031545e2d3d49e0bfd25faa5181 Mon Sep 17 00:00:00 2001 From: Dmitry Ivanov Date: Fri, 15 Apr 2022 18:36:11 +0300 Subject: [PATCH] Use the same version of `rust-postgres` everywhere. (#1516) Turns out we still had a stale dep in `compute_tools`. --- Cargo.lock | 104 ++++++++------------------------------- Cargo.toml | 4 +- compute_tools/Cargo.toml | 2 +- 3 files changed, 23 insertions(+), 87 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 6409b33055..0cdeb106ec 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -340,13 +340,13 @@ dependencies = [ "hyper", "libc", "log", - "postgres 0.19.1 (git+https://github.com/zenithdb/rust-postgres.git?rev=9eb0dbfbeb6a6c1b79099b9f7ae4a8c021877858)", + "postgres", "regex", "serde", "serde_json", "tar", "tokio", - "tokio-postgres 0.7.1 (git+https://github.com/zenithdb/rust-postgres.git?rev=2949d98df52587d562986aad155dd4e889e408b7)", + "tokio-postgres", "workspace_hack", ] @@ -378,7 +378,7 @@ dependencies = [ "lazy_static", "nix", "pageserver", - "postgres 0.19.1 (git+https://github.com/zenithdb/rust-postgres.git?rev=2949d98df52587d562986aad155dd4e889e408b7)", + "postgres", "regex", "reqwest", "serde", @@ -1529,9 +1529,9 @@ dependencies = [ "log", "nix", "once_cell", - "postgres 0.19.1 (git+https://github.com/zenithdb/rust-postgres.git?rev=2949d98df52587d562986aad155dd4e889e408b7)", - "postgres-protocol 0.6.1 (git+https://github.com/zenithdb/rust-postgres.git?rev=2949d98df52587d562986aad155dd4e889e408b7)", - "postgres-types 0.2.1 (git+https://github.com/zenithdb/rust-postgres.git?rev=2949d98df52587d562986aad155dd4e889e408b7)", + "postgres", + "postgres-protocol", + "postgres-types", "postgres_ffi", "rand", "regex", @@ -1546,7 +1546,7 @@ dependencies = [ "tempfile", "thiserror", "tokio", - "tokio-postgres 0.7.1 (git+https://github.com/zenithdb/rust-postgres.git?rev=2949d98df52587d562986aad155dd4e889e408b7)", + "tokio-postgres", "tokio-stream", "tokio-util 0.7.0", "toml_edit", @@ -1717,23 +1717,9 @@ dependencies = [ "fallible-iterator", "futures", "log", - "postgres-protocol 0.6.1 (git+https://github.com/zenithdb/rust-postgres.git?rev=2949d98df52587d562986aad155dd4e889e408b7)", + "postgres-protocol", "tokio", - "tokio-postgres 0.7.1 (git+https://github.com/zenithdb/rust-postgres.git?rev=2949d98df52587d562986aad155dd4e889e408b7)", -] - -[[package]] -name = "postgres" -version = "0.19.1" -source = "git+https://github.com/zenithdb/rust-postgres.git?rev=9eb0dbfbeb6a6c1b79099b9f7ae4a8c021877858#9eb0dbfbeb6a6c1b79099b9f7ae4a8c021877858" -dependencies = [ - "bytes", - "fallible-iterator", - "futures", - "log", - "postgres-protocol 0.6.1 (git+https://github.com/zenithdb/rust-postgres.git?rev=9eb0dbfbeb6a6c1b79099b9f7ae4a8c021877858)", - "tokio", - "tokio-postgres 0.7.1 (git+https://github.com/zenithdb/rust-postgres.git?rev=9eb0dbfbeb6a6c1b79099b9f7ae4a8c021877858)", + "tokio-postgres", ] [[package]] @@ -1754,24 +1740,6 @@ dependencies = [ "stringprep", ] -[[package]] -name = "postgres-protocol" -version = "0.6.1" -source = "git+https://github.com/zenithdb/rust-postgres.git?rev=9eb0dbfbeb6a6c1b79099b9f7ae4a8c021877858#9eb0dbfbeb6a6c1b79099b9f7ae4a8c021877858" -dependencies = [ - "base64 0.13.0", - "byteorder", - "bytes", - "fallible-iterator", - "hmac 0.10.1", - "lazy_static", - "md-5", - "memchr", - "rand", - "sha2", - "stringprep", -] - [[package]] name = "postgres-types" version = "0.2.1" @@ -1779,17 +1747,7 @@ source = "git+https://github.com/zenithdb/rust-postgres.git?rev=2949d98df52587d5 dependencies = [ "bytes", "fallible-iterator", - "postgres-protocol 0.6.1 (git+https://github.com/zenithdb/rust-postgres.git?rev=2949d98df52587d562986aad155dd4e889e408b7)", -] - -[[package]] -name = "postgres-types" -version = "0.2.1" -source = "git+https://github.com/zenithdb/rust-postgres.git?rev=9eb0dbfbeb6a6c1b79099b9f7ae4a8c021877858#9eb0dbfbeb6a6c1b79099b9f7ae4a8c021877858" -dependencies = [ - "bytes", - "fallible-iterator", - "postgres-protocol 0.6.1 (git+https://github.com/zenithdb/rust-postgres.git?rev=9eb0dbfbeb6a6c1b79099b9f7ae4a8c021877858)", + "postgres-protocol", ] [[package]] @@ -1935,7 +1893,7 @@ dependencies = [ "socket2", "thiserror", "tokio", - "tokio-postgres 0.7.1 (git+https://github.com/zenithdb/rust-postgres.git?rev=2949d98df52587d562986aad155dd4e889e408b7)", + "tokio-postgres", "tokio-postgres-rustls", "tokio-rustls", "workspace_hack", @@ -2793,30 +2751,8 @@ dependencies = [ "percent-encoding", "phf", "pin-project-lite", - "postgres-protocol 0.6.1 (git+https://github.com/zenithdb/rust-postgres.git?rev=2949d98df52587d562986aad155dd4e889e408b7)", - "postgres-types 0.2.1 (git+https://github.com/zenithdb/rust-postgres.git?rev=2949d98df52587d562986aad155dd4e889e408b7)", - "socket2", - "tokio", - "tokio-util 0.6.9", -] - -[[package]] -name = "tokio-postgres" -version = "0.7.1" -source = "git+https://github.com/zenithdb/rust-postgres.git?rev=9eb0dbfbeb6a6c1b79099b9f7ae4a8c021877858#9eb0dbfbeb6a6c1b79099b9f7ae4a8c021877858" -dependencies = [ - "async-trait", - "byteorder", - "bytes", - "fallible-iterator", - "futures", - "log", - "parking_lot", - "percent-encoding", - "phf", - "pin-project-lite", - "postgres-protocol 0.6.1 (git+https://github.com/zenithdb/rust-postgres.git?rev=9eb0dbfbeb6a6c1b79099b9f7ae4a8c021877858)", - "postgres-types 0.2.1 (git+https://github.com/zenithdb/rust-postgres.git?rev=9eb0dbfbeb6a6c1b79099b9f7ae4a8c021877858)", + "postgres-protocol", + "postgres-types", "socket2", "tokio", "tokio-util 0.6.9", @@ -2832,7 +2768,7 @@ dependencies = [ "ring", "rustls 0.20.2", "tokio", - "tokio-postgres 0.7.1 (git+https://github.com/zenithdb/rust-postgres.git?rev=2949d98df52587d562986aad155dd4e889e408b7)", + "tokio-postgres", "tokio-rustls", ] @@ -3171,8 +3107,8 @@ dependencies = [ "humantime", "hyper", "lazy_static", - "postgres 0.19.1 (git+https://github.com/zenithdb/rust-postgres.git?rev=2949d98df52587d562986aad155dd4e889e408b7)", - "postgres-protocol 0.6.1 (git+https://github.com/zenithdb/rust-postgres.git?rev=2949d98df52587d562986aad155dd4e889e408b7)", + "postgres", + "postgres-protocol", "postgres_ffi", "regex", "rusoto_core", @@ -3183,7 +3119,7 @@ dependencies = [ "signal-hook", "tempfile", "tokio", - "tokio-postgres 0.7.1 (git+https://github.com/zenithdb/rust-postgres.git?rev=2949d98df52587d562986aad155dd4e889e408b7)", + "tokio-postgres", "tokio-util 0.7.0", "tracing", "url", @@ -3432,7 +3368,7 @@ dependencies = [ "clap 3.0.14", "control_plane", "pageserver", - "postgres 0.19.1 (git+https://github.com/zenithdb/rust-postgres.git?rev=2949d98df52587d562986aad155dd4e889e408b7)", + "postgres", "postgres_ffi", "serde_json", "walkeeper", @@ -3468,8 +3404,8 @@ dependencies = [ "lazy_static", "nix", "pin-project-lite", - "postgres 0.19.1 (git+https://github.com/zenithdb/rust-postgres.git?rev=2949d98df52587d562986aad155dd4e889e408b7)", - "postgres-protocol 0.6.1 (git+https://github.com/zenithdb/rust-postgres.git?rev=2949d98df52587d562986aad155dd4e889e408b7)", + "postgres", + "postgres-protocol", "rand", "routerify 3.0.0", "rustls 0.19.1", diff --git a/Cargo.toml b/Cargo.toml index f3ac36dcb2..b8283a6112 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -18,7 +18,7 @@ resolver = "2" # Besides, debug info should not affect the performance. debug = true -# This is only needed for proxy's tests -# TODO: we should probably fork tokio-postgres-rustls instead +# This is only needed for proxy's tests. +# TODO: we should probably fork `tokio-postgres-rustls` instead. [patch.crates-io] tokio-postgres = { git = "https://github.com/zenithdb/rust-postgres.git", rev="2949d98df52587d562986aad155dd4e889e408b7" } diff --git a/compute_tools/Cargo.toml b/compute_tools/Cargo.toml index fc52ce4e83..856ec45c73 100644 --- a/compute_tools/Cargo.toml +++ b/compute_tools/Cargo.toml @@ -11,7 +11,7 @@ clap = "3.0" env_logger = "0.9" hyper = { version = "0.14", features = ["full"] } log = { version = "0.4", features = ["std", "serde"] } -postgres = { git = "https://github.com/zenithdb/rust-postgres.git", rev="9eb0dbfbeb6a6c1b79099b9f7ae4a8c021877858" } +postgres = { git = "https://github.com/zenithdb/rust-postgres.git", rev="2949d98df52587d562986aad155dd4e889e408b7" } regex = "1" serde = { version = "1.0", features = ["derive"] } serde_json = "1"