Closed morristai closed 1 year ago
Maybe related to this issue: https://github.com/WasmEdge/rust-mysql-simple-wasi/pull/5
This error is caused by a recent commit of crossbeam
We will fix this with crossbeam.
Can we fix our dependency to a specific version of crossbeam for now? It may take time for them to release a new version.
yes, adding these lines in Cargo.toml
will fix this issue temporarily on Linux
[patch.crates-io]
crossbeam-utils = { git = "https://github.com/crossbeam-rs/crossbeam.git", rev="46d0aeb" }
crossbeam-queue = { git = "https://github.com/crossbeam-rs/crossbeam.git", rev="46d0aeb" }
crossbeam-epoch = { git = "https://github.com/crossbeam-rs/crossbeam.git", rev="46d0aeb" }
However, it doesn't work on macOS because libz
can not be compiled for wasi.
This can be fixed by editing async_mysql
I mean to change the deps in mysql_async_wasi
to fix it at a version of crossbeam that works?
Fixing the version of crossbeam doesn't work cause we do not depend on crossbeam-utils directly.
but adding these patches to async_mysql
works indeed.
Crossbeam has fixed the problem. It should work on linux without any modification.
But for macos, we need to modify async_mysql
a bit.
It should work for now. @morristai If there are any other problems, please let us know.
It works now, you guys are awesome!! 💯
Hi, just a newbie here, want to ask if anyone occurred this issue by following README.md? Thanks