From d0d6c3a1a6165ca6af633c5a0fbd241c2a7090d0 Mon Sep 17 00:00:00 2001 From: Austin Bonander Date: Wed, 4 Feb 2026 16:37:29 -0800 Subject: [PATCH] chore: delete unused dependencies --- Cargo.toml | 4 +++- sqlx-core/Cargo.toml | 4 +--- sqlx-mysql/Cargo.toml | 14 +------------- sqlx-postgres/Cargo.toml | 2 +- 4 files changed, 6 insertions(+), 18 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 8726be4f..b7e6198c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -25,6 +25,8 @@ members = [ "examples/sqlite/todos", "examples/sqlite/extension", ] +# `rust-version` aware resolver +resolver = "3" [workspace.package] version = "0.9.0-alpha.1" @@ -190,6 +192,7 @@ uuid = "1.1.2" # Common utility crates cfg-if = "1.0.0" dotenvy = { version = "0.15.0", default-features = false } +rand = { version = "0.8.5", default-features = false } thiserror = { version = "2.0.17", default-features = false, features = ["std"] } # Runtimes @@ -232,7 +235,6 @@ paste = "1.0.6" serde = { version = "1.0.132", features = ["derive"] } serde_json = "1.0.73" url = "2.2.2" -rand = "0.8.4" rand_xoshiro = "0.6.0" hex = "0.4.3" tempfile = "3.10.1" diff --git a/sqlx-core/Cargo.toml b/sqlx-core/Cargo.toml index fff4ef3d..f2eef140 100644 --- a/sqlx-core/Cargo.toml +++ b/sqlx-core/Cargo.toml @@ -25,7 +25,7 @@ _rt-async-io = ["async-io", "async-fs"] # see note at async-fs declaration _rt-async-std = ["async-std", "_rt-async-io"] _rt-async-task = ["async-task"] _rt-smol = ["smol", "_rt-async-io", "_rt-async-task"] -_rt-tokio = ["tokio", "tokio-stream"] +_rt-tokio = ["tokio"] _tls-native-tls = ["native-tls"] _tls-rustls-aws-lc-rs = ["_tls-rustls", "rustls/aws-lc-rs", "webpki-roots"] @@ -92,8 +92,6 @@ serde = { version = "1.0.132", features = ["derive", "rc"], optional = true } serde_json = { version = "1.0.73", features = ["raw_value"], optional = true } toml = { version = "0.8.16", optional = true } sha2 = { version = "0.10.0", default-features = false, optional = true } -#sqlformat = "0.2.0" -tokio-stream = { version = "0.1.8", features = ["fs"], optional = true } tracing = { version = "0.1.37", features = ["log"] } smallvec = "1.7.0" url = { version = "2.2.2" } diff --git a/sqlx-mysql/Cargo.toml b/sqlx-mysql/Cargo.toml index 8a7c9cef..8ddf365e 100644 --- a/sqlx-mysql/Cargo.toml +++ b/sqlx-mysql/Cargo.toml @@ -26,18 +26,12 @@ uuid = ["dep:uuid", "sqlx-core/uuid"] sqlx-core = { workspace = true } # Futures crates -futures-channel = { version = "0.3.19", default-features = false, features = ["sink", "alloc", "std"] } futures-core = { version = "0.3.19", default-features = false } -futures-io = "0.3.24" futures-util = { version = "0.3.19", default-features = false, features = ["alloc", "sink", "io"] } # Cryptographic Primitives crc = "3.0.0" digest = { version = "0.10.0", default-features = false, features = ["std"] } -hkdf = "0.12.0" -hmac = { version = "0.12.0", default-features = false } -md-5 = { version = "0.10.0", default-features = false } -rand = { version = "0.8.4", default-features = false, features = ["std", "std_rng"] } rsa = "0.9" sha1 = { version = "0.10.1", default-features = false } sha2 = { version = "0.10.0", default-features = false } @@ -50,20 +44,14 @@ time = { workspace = true, optional = true } uuid = { workspace = true, optional = true } # Misc -atoi = "2.0" -base64 = { version = "0.22.0", default-features = false, features = ["std"] } bitflags = { version = "2", default-features = false, features = ["serde"] } byteorder = { version = "1.4.3", default-features = false, features = ["std"] } bytes = "1.1.0" either = "1.6.1" generic-array = { version = "0.14.4", default-features = false } -hex = "0.4.3" -itoa = "1.0.1" log = "0.4.18" -memchr = { version = "2.4.1", default-features = false } percent-encoding = "2.1.0" -smallvec = "1.7.0" -stringprep = "0.1.2" +rand = { workspace = true, default-features = false, features = ["std", "std_rng"] } tracing = { version = "0.1.37", features = ["log"] } dotenvy.workspace = true diff --git a/sqlx-postgres/Cargo.toml b/sqlx-postgres/Cargo.toml index 89016c80..6d8fe34a 100644 --- a/sqlx-postgres/Cargo.toml +++ b/sqlx-postgres/Cargo.toml @@ -37,7 +37,6 @@ crc = "3.0.0" hkdf = "0.12.0" hmac = { version = "0.12.0", default-features = false, features = ["reset"]} md-5 = { version = "0.10.0", default-features = false } -rand = { version = "0.8.4", default-features = false, features = ["std", "std_rng"] } sha2 = { version = "0.10.0", default-features = false } # Type Integrations (versions inherited from `[workspace.dependencies]`) @@ -62,6 +61,7 @@ itoa = "1.0.1" log = "0.4.18" memchr = { version = "2.4.1", default-features = false } num-bigint = { version = "0.4.3", optional = true } +rand = { workspace = true, default-features = false, features = ["std", "std_rng"] } smallvec = { version = "1.7.0", features = ["serde"] } stringprep = "0.1.2" tracing = { version = "0.1.37", features = ["log"] }