pg.ddx.io  pgdogdev/pgdog GitHub issues and pull requests  
help / color / mirror / Atom feed
From: meskill (@meskill) <noreply+meskill@github.com>
To: pgdogdev/pgdog <noreply+pgdogdev-pgdog@github.com>
Subject: [pgdogdev/pgdog] PR #2074: chore: remove unused dependencies
Date: Thu, 19 Nov 2026 13:43:43 +0000
Message-ID: <gh-pgdogdev-pgdog-2074@github.com> (raw)

New rust now show warnings about unused deps - clean them up and make lock file smaller

inline patch 1: Cargo.lock, examples/demo/Cargo.toml, integration/rust/Cargo.toml and 3 more (+12/-86 lines) download inline-1.patchdiff --git a/Cargo.lock b/Cargo.lock index f337ec7cf..fcc3b4160 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -280,7 +280,7 @@ version = "0.13.16" source = "registry+https://github.com/rust-lang/crates.io-index"; checksum = "37b00953a69b2cfb471d13d72538d2e66930832340b0f31deadd404b48c573c5" dependencies = [ - "bindgen 0.72.1", + "bindgen", "cc", "cmake", "dunce", @@ -757,26 +757,6 @@ dependencies = [ "num-traits", ] -[[package]] -name = "bindgen" -version = "0.71.1" -source = "registry+https://github.com/rust-lang/crates.io-index"; -checksum = "5f58bf3d7db68cfbac37cfc485a8d711e87e064c3d0fe0435b92f7a407f9d6b3" -dependencies = [ - "bitflags 2.11.1", - "cexpr", - "clang-sys", - "itertools 0.13.0", - "log", - "prettyplease", - "proc-macro2", - "quote", - "regex", - "rustc-hash", - "shlex 1.3.0", - "syn 2.0.118", -] - [[package]] name = "bindgen" version = "0.72.1" @@ -1247,15 +1227,6 @@ version = "2.5.0" source = "registry+https://github.com/rust-lang/crates.io-index"; checksum = "217698eaf96b4a3f0bc4f3662aaa55bdf913cd54d7204591faa790070c6d0853" -[[package]] -name = "crc32c" -version = "0.6.8" -source = "registry+https://github.com/rust-lang/crates.io-index"; -checksum = "3a47af21622d091a8f0fb295b88bc886ac74efcc613efc19f5d0b21de5c89e47" -dependencies = [ - "rustc_version", -] - [[package]] name = "crc32fast" version = "1.5.0" @@ -1491,7 +1462,6 @@ version = "0.1.0" dependencies = [ "colored", "tokio", - "which", ] [[package]] @@ -1691,12 +1661,6 @@ dependencies = [ "syn 2.0.118", ] -[[package]] -name = "env_home" -version = "0.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index"; -checksum = "c7f84e12ccf0a7ddc17a6c41c93326024c42920d7ee630d04950e6926645c0fe" - [[package]] name = "equivalent" version = "1.0.2" @@ -2507,10 +2471,8 @@ dependencies = [ "chrono", "chrono-tz", "futures-util", - "itertools 0.15.0", "libc", "native-tls", - "ordered-float", "parking_lot", "pg_stream", "pgdog-regress", @@ -3093,15 +3055,6 @@ dependencies = [ "vcpkg", ] -[[package]] -name = "ordered-float" -version = "4.6.0" -source = "registry+https://github.com/rust-lang/crates.io-index"; -checksum = "7bb71e1b3fa6ca1c61f383464aaf2bb0e2f8e772a1f01d486832464de363b951" -dependencies = [ - "num-traits", -] - [[package]] name = "outref" version = "0.5.2" @@ -3163,7 +3116,7 @@ name = "pg_internals" version = "0.1.0" source = "git+https://github.com/pgdogdev/pg-internals?rev=ce5c26f2501d787cdb84f610176a92880944dbcd#ce5c26f2501d78...; dependencies = [ - "bindgen 0.72.1", + "bindgen", "cc", "clang-sys", "phf 0.13.1", @@ -3181,7 +3134,7 @@ name = "pg_raw_parse" version = "0.1.0" source = "git+https://github.com/pgdogdev/pg_raw_parse.git?rev=89937b1#89937b1a9c39bbb53b679f12aba3ff7c5ab3c093...; dependencies = [ - "bindgen 0.72.1", + "bindgen", "cc", "convert_case 0.11.0", "generativity", @@ -3198,7 +3151,7 @@ name = "pg_raw_parse" version = "0.1.0" source = "git+https://github.com/pgdogdev/pg_raw_parse.git?rev=a4784fc603563d3db8e9f381347f039f39b1dd85#a4784fc603...; dependencies = [ - "bindgen 0.72.1", + "bindgen", "cc", "convert_case 0.11.0", "generativity", @@ -3244,7 +3197,6 @@ dependencies = [ "chrono", "chrono-tz", "clap", - "crc32c", "csv-core", "dashmap", "derive_builder", @@ -3371,7 +3323,6 @@ dependencies = [ name = "pgdog-plugin" version = "0.5.0" dependencies = [ - "bindgen 0.71.1", "libloading", "pg_raw_parse 0.1.0 (git+https://github.com/pgdogdev/pg_raw_parse.git?rev=89937b1)";, "pgdog-postgres-types", @@ -3400,7 +3351,6 @@ version = "0.1.0" dependencies = [ "arc-swap", "once_cell", - "parking_lot", "pg_raw_parse 0.1.0 (git+https://github.com/pgdogdev/pg_raw_parse.git?rev=89937b1)";, "pgdog-plugin", "serde", @@ -5794,18 +5744,6 @@ dependencies = [ "rustls-pki-types", ] -[[package]] -name = "which" -version = "7.0.3" -source = "registry+https://github.com/rust-lang/crates.io-index"; -checksum = "24d643ce3fd3e5b54854602a080f34fb10ab75e0b813ee32d00ca2b44fa74762" -dependencies = [ - "either", - "env_home", - "rustix", - "winsafe", -] - [[package]] name = "whoami" version = "1.6.1" @@ -6080,12 +6018,6 @@ dependencies = [ "memchr", ] -[[package]] -name = "winsafe" -version = "0.0.19" -source = "registry+https://github.com/rust-lang/crates.io-index"; -checksum = "d135d17ab770252ad95e9a872d365cf3090e3be864a34ab46f48555993efc904" - [[package]] name = "wiremock" version = "0.6.5" diff --git a/examples/demo/Cargo.toml b/examples/demo/Cargo.toml index 453331115..ff336c022 100644 --- a/examples/demo/Cargo.toml +++ b/examples/demo/Cargo.toml @@ -6,4 +6,3 @@ edition = "2024" [dependencies] colored = "3.0" tokio.workspace = true -which = "7" diff --git a/integration/rust/Cargo.toml b/integration/rust/Cargo.toml index 35e9e7df1..ba78267ce 100644 --- a/integration/rust/Cargo.toml +++ b/integration/rust/Cargo.toml @@ -8,26 +8,26 @@ test = true [dependencies] tokio-postgres = {version = "0.7.13", features = ["with-uuid-1"]} -postgres-native-tls = "0.5" native-tls = "0.2" sqlx = { version = "0.8.6", features = ["postgres", "runtime-tokio", "tls-native-tls", "bigdecimal", "chrono", "json", "rust_decimal", "uuid"]} tokio.workspace = true futures-util.workspace = true uuid.workspace = true -serial_test = "3" chrono = "0.4" parking_lot.workspace = true -reqwest.workspace = true serde_json.workspace = true -ordered-float = "4.2" -tokio-rustls = "0.26" libc = "0.2" -rand = "0.9" bytes.workspace = true rust_decimal = { version = "1.42.0", features = ["macros"] } + +[dev-dependencies] +postgres-native-tls = "0.5" +serial_test = "3" +reqwest.workspace = true +rand = "0.9" chrono-tz = "0.10.4" pgdog-stats = { path = "../../pgdog-stats" } -itertools = "0.15" pg_stream = "0.2.1" pgdog-regress = { git = "https://github.com/pgdogdev/regress.git";, rev = "22032787eeaef9bf97aaa3216735a7369f1f9125" } anyhow = "1.0.104" +tokio-rustls = "0.26" diff --git a/pgdog-plugin/Cargo.toml b/pgdog-plugin/Cargo.toml index f8f0faeae..0bb7eeed5 100644 --- a/pgdog-plugin/Cargo.toml +++ b/pgdog-plugin/Cargo.toml @@ -21,8 +21,5 @@ pgdog-postgres-types.workspace = true tracing = "0.1" tracing-subscriber = { version = "0.3", features = ["env-filter", "json"] } -[build-dependencies] -bindgen = "0.71.0" - [features] default = [] diff --git a/pgdog/Cargo.toml b/pgdog/Cargo.toml index 4ed04c0c1..62db8e3d7 100644 --- a/pgdog/Cargo.toml +++ b/pgdog/Cargo.toml @@ -75,11 +75,9 @@ aws-sdk-rds = { version = "1", default-features = false } pgdog-config = { path = "../pgdog-config" } pgdog-vector = { path = "../pgdog-vector" } pgdog-stats = { path = "../pgdog-stats" } -pgdog-macros = { path = "../pgdog-macros" } pgdog-postgres-types.workspace = true azure_identity = "1.0.0" azure_core = "1.0.0" -crc32c = "0.6.8" bit-vec = "0.8" smallvec = "1" reqwest.workspace = true @@ -108,3 +106,4 @@ brunch = "0.5" wiremock = "0.6" tokio = { workspace = true, features = ["test-util"] } divan = "0.1.21" +pgdog-macros = { path = "../pgdog-macros" } diff --git a/plugins/pgdog-primary-only-tables/Cargo.toml b/plugins/pgdog-primary-only-tables/Cargo.toml index f16b50d7f..efcd100d8 100644 --- a/plugins/pgdog-primary-only-tables/Cargo.toml +++ b/plugins/pgdog-primary-only-tables/Cargo.toml @@ -9,7 +9,6 @@ crate-type = ["cdylib"] [dependencies] pgdog-plugin.workspace = true once_cell = "1" -parking_lot = "0.12" thiserror = "2" toml = "0.8" serde = { version = "1", features = ["derive"]}

view thread (8+ messages)  latest in thread

Message-ID: <gh-pgdogdev-pgdog-2074@github.com>
Permalink:  ../gh-pgdogdev-pgdog-2074@github.com/

 ·  · 


This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox