-
Notifications
You must be signed in to change notification settings - Fork 6
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
adding tonic on cargo.toml wont build #39
Comments
Thanks for sharing the output - this makes it waaay easier to investigate and I appreciate you taking the time.
It looks like tonic depends on tokio, and unfortunately tokio does not yet support compiling to Wasm. (Well, not enough of tokio, anyway...) Sorry, I'm not aware of a workaround at this stage, although hopefully it will improve as the Rust wasip2 target comes on stream, and as WASI 0.3 (with async) stabilises. |
Im currently researching it on using on wasm, i found a good resource i would post it back here if i manage to make it work |
@itowlson after some experimentation, i never got it to work ... |
@codeitlikemiley Ugh, that's frustrating. Thanks for letting us know - hopefully this will improve as the Wasm ecosystem does (and perhaps as WASI 0.3 becomes available). |
I tried to build a normal leptos app
and consume a grpc service
it works ...
so I headed on testing it with leptos-spin
i added this on
Cargo.toml
Output of `spin build`
https://gist.github.com/codeitlikemiley/97c162babfba3ceeed2cdd92c229a6eb
I guess any grpc related stuff cannot be invoke on any spin instance?
The text was updated successfully, but these errors were encountered: