Stream: git-wasmtime

Topic: wasmtime / Issue #2691 Suggested upgrade path for 0.22 =>...


view this post on Zulip Wasmtime GitHub notifications bot (Feb 27 2021 at 05:59):

softprops opened Issue #2691:

I'm in the process of upgrading both wasmtime and wasmtime-wasi from 0.22 this was pretty straight forward except that I noticed WasiCtxBuilder::new() was removed. I'd previously used this to construct a new Wasi instance as follows

 let wasi = Wasi::new(
            &store,
            WasiCtxBuilder::new()
                .inherit_stdout()
                .inherit_stderr()
                .build()?,
        );

It's unclear what the upgrade path is. There wasn't an explicit callout in the release notes

I'm also noticing the docs hosted on docs.rs seem to stop publishing at 0.21

view this post on Zulip Wasmtime GitHub notifications bot (Feb 27 2021 at 06:28):

softprops commented on Issue #2691:

for anyone else that hits this upgrade bump. You'll want to use a new provider crate https://crates.io/crates/wasi-cap-std-sync

The upgrade path is just

++ use wasi_cap_std_sync::WasiCtxBuilder;
-- use wasmtime_wasi::WasiCtxBuilder;

view this post on Zulip Wasmtime GitHub notifications bot (Feb 27 2021 at 06:28):

softprops closed Issue #2691:

I'm in the process of upgrading both wasmtime and wasmtime-wasi from 0.22 this was pretty straight forward except that I noticed WasiCtxBuilder::new() was removed. I'd previously used this to construct a new Wasi instance as follows

 let wasi = Wasi::new(
            &store,
            WasiCtxBuilder::new()
                .inherit_stdout()
                .inherit_stderr()
                .build()?,
        );

It's unclear what the upgrade path is. There wasn't an explicit callout in the release notes

I'm also noticing the docs hosted on docs.rs seem to stop publishing at 0.21

view this post on Zulip Wasmtime GitHub notifications bot (Mar 01 2021 at 16:11):

sunfishcode commented on Issue #2691:

Thanks for pointing this out! I've now fixed https://github.com/bytecodealliance/wasmtime/pull/2694 to add this to the RELEASES.md document.


Last updated: Dec 23 2024 at 12:05 UTC