From b267bdb02f5c12ffe5dff36f762dee80d610b13b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alejandro=20Alonso=20L=C3=B3pez?= Date: Wed, 6 Mar 2024 20:36:34 +0100 Subject: [PATCH] Fix DNS problem - mysql_async_wasi version rollback (exact version) --- Cargo.toml | 12 +++--------- Dockerfile | 1 - 2 files changed, 3 insertions(+), 10 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index d4c5283..c377595 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -8,12 +8,6 @@ anyhow = "1.0" serde_json = "1.0" serde = { version = "1.0", features = ["derive"] } url = "2.3" -mysql_async_wasi = "0.31" -hyper_wasi = { path = "./local_deps/hyper", features = ["full"] } -tokio_wasi = { path = "./local_deps/tokio/tokio", features = ["full"] } - -[patch.crates-io] -tokio-util_wasi = { path = "./local_deps/tokio/tokio-util" } -h2_wasi = { path = "./local_deps/h2" } -hyper_wasi = { path = "./local_deps/hyper" } -tokio_wasi = { path = "./local_deps/tokio/tokio" } \ No newline at end of file +mysql_async_wasi = "=0.31.5" +hyper_wasi = { version = "0.15", features = ["full"] } +tokio_wasi = { version = "1", features = ["io-util", "fs", "net", "time", "rt", "macros"] } \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index 41bd3d3..20e4863 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,7 +9,6 @@ EOT FROM buildbase AS build COPY Cargo.toml orders.json update_order.json ./ -COPY local_deps ./local_deps COPY src ./src # Build the Wasm binary RUN cargo build --target wasm32-wasi --release