-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Lile .wasm static lib #63
Comments
I'm not sure. Tried to built Could you explain what's your end goal? Because Long questions short:
|
Hi @gitbuda, I want to call it from CloudFlare worker. We are using Rust for this. I checked rsmgclient, which also are bindings for C lib. And this rust client doesn't support wasm target. |
Is server-client encryption needed (I guess yes)? But in any case, this is helpful, I can also try to make the client code work from the CloudFlare worker in Rust 🦀 🔨 I'll give it a try in the following days 💪 In the meantime, maybe one of the native Neo4j drivers works in the CloudFlare context (Memgraph is almost 100% compatible because of the compatibility with the underlying Bolt protocol, if you make one of these drivers work under CloudFlare, it's 99.99% you will be able to connect to Memgraph 🤔 👀 |
I'm randomly doing some other work on |
PR to follow memgraph/rsmgclient#56 (nothing yet works) |
@aviplayer quick update and more questions. I haven't managed to make much progress under memgraph/rsmgclient#56 because a basic CloudFlare project/template for some reason doesn't work... I'll try to investigate (but not an expert with CF workers + wasm -> it might take time...) On the other hand, I've managed to statically link OpenSSL under memgraph/rsmgclient#57 (it's just an example, I plan to add a proper compile-time option). So, this might be close to enable "Then for me is only way to have statically compiled C library and create Rust Bindings by my own."? I suggest we jump on max 30mins call to deep dive into options? If that makes sense, please pick a time under https://calendar.app.google/EPGybdXCiF8Uc86K8. I'm also open for an "on-line" hackathon to make this work 👀💪 |
I noticed, it is possible to compile to wasm
Compiling mgclient for wasm requires the Emscripten sdk. This is automated in the following steps:
mkdir build && cd build
cmake .. -DWASM=ON
make
Is it possible to do same but create a static lib. By the same I mean without OpenSsl. Per my understanding wasm target means absence OpenSsl
The text was updated successfully, but these errors were encountered: