From 61901a00983f14f7dce0a70f2bd737eeea783267 Mon Sep 17 00:00:00 2001 From: csh <458761603@qq.com> Date: Tue, 23 Apr 2024 00:41:56 +0800 Subject: [PATCH] update mysql_async/Cargo.toml Signed-off-by: csh <458761603@qq.com> --- mysql_async/.cargo/config.toml | 1 + mysql_async/Cargo.toml | 8 ++++++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/mysql_async/.cargo/config.toml b/mysql_async/.cargo/config.toml index 818507c..6b8b460 100644 --- a/mysql_async/.cargo/config.toml +++ b/mysql_async/.cargo/config.toml @@ -1,5 +1,6 @@ [build] target = "wasm32-wasi" +rustflags = ["--cfg", "wasmedge", "--cfg", "tokio_unstable"] [target.wasm32-wasi] runner = "wasmedge" diff --git a/mysql_async/Cargo.toml b/mysql_async/Cargo.toml index 62808e5..7b1e55e 100644 --- a/mysql_async/Cargo.toml +++ b/mysql_async/Cargo.toml @@ -3,7 +3,11 @@ name = "crud" version = "0.1.0" edition = "2021" +[patch.crates-io] +tokio = { git = "https://github.com/second-state/wasi_tokio.git", branch = "v1.36.x" } +socket2 = { git = "https://github.com/second-state/socket2.git", branch = "v0.5.x" } + [dependencies] -mysql_async_wasi = { version = "0.33", features = [ "default-rustls" ] } +mysql_async = { version = "0.34", default-features=false, features = [ "default-rustls" ], git="https://github.com/blackbeam/mysql_async.git" } zstd-sys = "=2.0.9" -tokio_wasi = { version = "1", features = [ "io-util", "fs", "net", "time", "rt", "macros"] } +tokio = { version = "1", features = [ "io-util", "fs", "net", "time", "rt", "macros"] }