Git Product home page Git Product logo

Comments (9)

MediosZ avatar MediosZ commented on August 11, 2024 1

It should work for now. @morristai
If there are any other problems, please let us know.

from microservice-rust-mysql.

morristai avatar morristai commented on August 11, 2024 1

It works now, you guys are awesome!! 💯

from microservice-rust-mysql.

hydai avatar hydai commented on August 11, 2024

Maybe related to this issue: WasmEdge/rust-mysql-simple-wasi#5

from microservice-rust-mysql.

MediosZ avatar MediosZ commented on August 11, 2024

This error is caused by a recent commit of crossbeam

We will fix this with crossbeam.

from microservice-rust-mysql.

juntao avatar juntao commented on August 11, 2024

Can we fix our dependency to a specific version of crossbeam for now? It may take time for them to release a new version.

from microservice-rust-mysql.

MediosZ avatar MediosZ commented on August 11, 2024

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

from microservice-rust-mysql.

juntao avatar juntao commented on August 11, 2024

I mean to change the deps in mysql_async_wasi to fix it at a version of crossbeam that works?

from microservice-rust-mysql.

MediosZ avatar MediosZ commented on August 11, 2024

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.

from microservice-rust-mysql.

MediosZ avatar MediosZ commented on August 11, 2024

Crossbeam has fixed the problem. It should work on linux without any modification.
But for macos, we need to modify async_mysql a bit.

from microservice-rust-mysql.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.