-
-
Notifications
You must be signed in to change notification settings - Fork 38
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
WASM bindings broken? #181
Comments
For imports to work, you need to call jrsonnet_apply_static_import_callback() once. Without it, OS file importer will be used, and while it should work in theory with WASI, as I can see, you need some setup to make it work, is there something like _start export of wasm?.. bytecodealliance/wasmtime#2902 I'll check why the bindings won't build with interop feature, thanks! |
Thanks for the quick reply! I see, I had commented out this call in my code. Now I am getting error Regarding WASI, yes I can see a |
Ok, I have found that |
Hi!
I am trying to figure out how make
make test-js
work from thebindings
folder (running Node21.6.0
). My goal is being able to evaluate vanilla jsonnet files with imports working through WASI.I managed to get
vm.evaluateSnippet
to work on tagv0.5.0-pre96-test
, but I cannot getvm.evaluateFile
to work. It seems there was a refacto done at some point and bindings got broken 🤔. I now need to enableinterop
feature, butJsonnetImportCallback
type got changed.Here is my progress to make it work, though without much success for now: https://github.com/CertainLach/jrsonnet/compare/v0.5.0-pre96-test...ste26054:wasm-bindings?expand=1
Any help would be much appreciated 🙂
The text was updated successfully, but these errors were encountered: