Skip to content
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

Support wasm32-wasi compile target #92

Open
dunnock opened this issue Nov 12, 2019 · 0 comments
Open

Support wasm32-wasi compile target #92

dunnock opened this issue Nov 12, 2019 · 0 comments

Comments

@dunnock
Copy link

dunnock commented Nov 12, 2019

Compiling to wasm32-wasi on the stable rustc 1.39 fails, so it seems solution implemented in #84 is not working anymore.

Currently compilation fails:

   Compiling net2 v0.2.33 (https://github.com/rust-lang-nursery/net2-rs#eda403f0)
error[E0432]: unresolved import `libc::__wasi_fd_t`
  --> /Users/max/.cargo/git/checkouts/net2-rs-4b5319289a3d25c1/eda403f/src/sys/wasi/mod.rs:12:25
   |
12 | use libc::{self, c_int, __wasi_fd_t};
   |                         ^^^^^^^^^^^ no `__wasi_fd_t` in the root

error[E0432]: unresolved import `sys::c::__wasi_fd_t`
 --> /Users/max/.cargo/git/checkouts/net2-rs-4b5319289a3d25c1/eda403f/src/sys/wasi/impls.rs:5:17
  |
5 | use sys::{self, c::__wasi_fd_t};
  |                 ^^^^^^^^^^^^^^ no `__wasi_fd_t` in `sys::c`

There are now implementations of a networking in wasi which hopefully could be used to provide networking.

There are various dependent crates which would be great to compile to WASI, like async-rs/async-std#505

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant