-
Notifications
You must be signed in to change notification settings - Fork 54
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
Compiling to WASM #67
Comments
I also tried it, but I encountered the following error: error[E0658]: use of unstable library feature 'wasi_ext'
--> /home/myname/.cargo/git/checkouts/tokio-2eb71367495b4da5/833de72/tokio/src/fs/open_options.rs:19:5
|
19 | use std::os::wasi::fs::OpenOptionsExt;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: see issue #71213 <https://github.com/rust-lang/rust/issues/71213> for more information
= help: add `#![feature(wasi_ext)]` to the crate attributes to enable I put |
Hey @godronus! To fix this issue, you need a build of the You'd need to clone that repo, run |
@MasatoDev which version of the WASIX toolchain do you have? That looks like an error message from an outdated compiler to me. |
Thank you for your reply.🙇♂️ my versions logubuntu :~/winterjs$ cargo wasix --version
cargo-wasix 0.1.23
ubuntu :~/winterjs$ rustup show
Default host: x86_64-unknown-linux-gnu
rustup home: /home/ubuntu/.rustup
installed toolchains
--------------------
stable-x86_64-unknown-linux-gnu
nightly-x86_64-unknown-linux-gnu (default)
1.76-x86_64-unknown-linux-gnu
wasix
active toolchain
----------------
nightly-x86_64-unknown-linux-gnu (default)
rustc 1.79.0-nightly (ccfcd950b 2024-04-15)
ubuntu :~/winterjs$ rustup -V
rustup 1.27.0 (bbb9276d2 2024-03-08)
info: This is the version for the rustup toolchain manager, not the rustc compiler.
info: The currently active `rustc` version is `rustc 1.79.0-nightly (ccfcd950b 2024-04-15)`
ubuntu :~/winterjs$ cargo -V
cargo 1.79.0-nightly (48eca1b16 2024-04-12)
ubuntu :~/winterjs$ rustc -V
rustc 1.79.0-nightly (ccfcd950b 2024-04-15) I've already tried with cargo 1.76. |
@MasatoDev Try running:
and retry your build, see if the output changes? Unfortunately, it's not easy to view the WASIX toolchain version, so I don't know if you have the latest version or not. The downloader should find version |
@Arshia001 |
@godronus, how did you manage to build winter.js on linux? Please your immediate reply would be deeply appreciated. |
Having managed to get winterjs building on Linux, @Arshia001 thanks again..
I am now trying to build it to wasm. My understanding is that I should be able to follow your build.sh script to get this done.
i.e.
cargo +wasix build --target wasm32-wasmer-wasi -r
so long as I have the required tooling installed.Any help here would be appreciated... :)
The text was updated successfully, but these errors were encountered: