Skip to content

Commit

Permalink
Remove transitive dependency on mio
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Marques, Sandro | ECMPD committed Sep 7, 2024
1 parent d1229ae commit c4be700
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/client_async/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }

0 comments on commit c4be700

Please sign in to comment.