Stream: git-wasmtime

Topic: wasmtime / issue #8688 Wasmtime-wasi fails to build on WA...


view this post on Zulip Wasmtime GitHub notifications bot (May 23 2024 at 16:34):

alexcrichton edited issue #8688:

Test Case

Building rust crate wasmtime-wasi = "21.0.1" in a project

Steps to Reproduce

Expected Results

To build Without Error

Actual Results

error[E0554]: #![feature] may not be used on the stable release channel --> /home/joshua/.cargo/registry/src/index.crates.io-6f17d22bba15001f/io-extras-0.18.2/src/lib.rs:21:41 | 21 | #![cfg_attr(target_os = "wasi", feature(wasi_ext))] | ^^^^^^^^

Versions and Environment

Wasmtime version or commit: 21.0.1

Operating system: Ubuntu 22.04.3 LTS

Architecture: amd64

cargo: 1.78.0

view this post on Zulip Wasmtime GitHub notifications bot (May 23 2024 at 20:46):

aruokhai commented on issue #8688:

My understanding is that wasmtime-wasi library can be used to call wasi-0.2 api's in a project that is to be complied to WASI. Specifically I want to make use of the Socket api, which tokio doesn't seem to have implemented. If this is not the case, what options do I have .

view this post on Zulip Wasmtime GitHub notifications bot (May 23 2024 at 21:16):

bjorn3 commented on issue #8688:

You are probably looking for the wasi crate. The wasmtime-wasi crate contains the host implementation of wasi when using wasmtime. It is never used as part of your wasm module. The guest (wasm module) side bindings are provided by the wasi crate.

view this post on Zulip Wasmtime GitHub notifications bot (May 24 2024 at 08:07):

aruokhai closed issue #8688:

Test Case

Building rust crate wasmtime-wasi = "21.0.1" in a project

Steps to Reproduce

Expected Results

To build Without Error

Actual Results

error[E0554]: #![feature] may not be used on the stable release channel --> /home/joshua/.cargo/registry/src/index.crates.io-6f17d22bba15001f/io-extras-0.18.2/src/lib.rs:21:41 | 21 | #![cfg_attr(target_os = "wasi", feature(wasi_ext))] | ^^^^^^^^

Versions and Environment

Wasmtime version or commit: 21.0.1

Operating system: Ubuntu 22.04.3 LTS

Architecture: amd64

cargo: 1.78.0

view this post on Zulip Wasmtime GitHub notifications bot (May 24 2024 at 08:07):

aruokhai commented on issue #8688:

Oh ok, thanks a lot for clearing that up.


Last updated: Oct 23 2024 at 20:03 UTC