From 8699dbb6cb9a6845026efae8d2c21670629bcef8 Mon Sep 17 00:00:00 2001 From: Sandro Marques Date: Sun, 8 Sep 2024 14:21:19 +0900 Subject: [PATCH] Remove transitive dependency on `mio` MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This allows projects targeting `wasm32-unknown-unknown` to compile. The `mio` dependency is being brought in via: `cornucopia_async`→`tokio-postgres`→`tokio-postgres/runtime`→`tokio/net`→`mio`. By disabling the default features of `tokio-postgres`, we disable its `runtime` feature. --- crates/client_async/Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/client_async/Cargo.toml b/crates/client_async/Cargo.toml index 4525ca86..49e70ff3 100644 --- a/crates/client_async/Cargo.toml +++ b/crates/client_async/Cargo.toml @@ -25,7 +25,7 @@ cornucopia_client_core = { path = "../client_core", version = "0.4.0" } async-trait = "0.1.63" # rust-postgres interaction -tokio-postgres = "0.7.7" +tokio-postgres = { version = "0.7.7", default-features = false } # connection pooling deadpool-postgres = { version = "0.12.1", optional = true }