Skip to content

Commit c4be700

Browse files
author
Marques, Sandro | ECMPD
committed
Remove transitive dependency on mio
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.
1 parent d1229ae commit c4be700

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/client_async/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ cornucopia_client_core = { path = "../client_core", version = "0.4.0" }
2525
async-trait = "0.1.63"
2626

2727
# rust-postgres interaction
28-
tokio-postgres = "0.7.7"
28+
tokio-postgres = { version = "0.7.7", default-features = false }
2929

3030
# connection pooling
3131
deadpool-postgres = { version = "0.12.1", optional = true }

0 commit comments

Comments
 (0)