You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello I had an idea try to embed a gprc client using wasm. Whenever I try to build with a target of wasm32-unknown-unknown it fails with the exception below. I'm not even sure if this is possible to do but I wanted to see if any else had an opinion on the issue.
+ cargo build --target wasm32-unknown-unknown
Compiling grpcio-sys v0.4.2
error[E0432]: unresolved imports `libc::c_char`, `libc::c_int`, `libc::c_uint`, `libc::c_void`, `libc::int32_t`, `libc::int64_t`, `libc::size_t`, `libc::uint32_t`
--> /home/itshabib/.cargo/registry/src/github.com-1ecc6299db9ec823/grpcio-sys-0.4.2/src/lib.rs:18:12
|
18 | use libc::{c_char, c_int, c_uint, c_void, int32_t, int64_t, size_t, uint32_t};
| ^^^^^^ ^^^^^ ^^^^^^ ^^^^^^ ^^^^^^^ ^^^^^^^ ^^^^^^ ^^^^^^^^ no `uint32_t` in the root
| | | | | | | |
| | | | | | | no `size_t` in the root
| | | | | | no `int64_t` in the root
| | | | | no `int32_t` in the root
| | | | no `c_void` in the root
| | | no `c_uint` in the root
| | no `c_int` in the root
| no `c_char` in the root
error: aborting due to previous error
For more information about this error, try `rustc --explain E0432`.
error: Could not compile `grpcio-sys`.
I have limited knowledge about WASM. And I doubt whether the gRPC core library works for WASM at all. You are welcome to share your experience when you make it.
Hello I had an idea try to embed a gprc client using wasm. Whenever I try to build with a target of
wasm32-unknown-unknown
it fails with the exception below. I'm not even sure if this is possible to do but I wanted to see if any else had an opinion on the issue.Cargo.toml
Project code: https://github.com/itsHabib/wasm-grpc/tree/master/grpc-client
OS
Rust version
The text was updated successfully, but these errors were encountered: