<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="/rss.xsl.xml"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
    <title>Changes in empty.rs</title>
    <description></description>
    <language>en</language>
    <copyright>Copyright 2015</copyright>
    <generator>Java</generator><item>
        <title>e6a662b3 - Share stdio implementations in WASIp{2,3}  (#11368)</title>
        <link>http://172.16.0.5:8080/history/wasmtime-44.0.1/crates/wasi/src/cli/empty.rs#e6a662b3</link>
        <description>Share stdio implementations in WASIp{2,3}  (#11368)* Share stdio implementations in WASIp{2,3}This commit is a refactoring of the`wasmtime_wasi::{cli,p2::stdio,p3::cli}` modules to share more code. Thegeneric trait object that represents stdio now has the ability toacquire either a p2 stream or an async-based stream. The acquisition ofp2 has a default implementation so in the future this can be primarily`Async{Read,Write}`-based.Many trait implementations and types and such were all consolidatedtogether into the `wasmtime_wasi::cli` module. One-off implementationsin p2/p3 are now shared in one location and `WasiCtxBuilder` no longerneeds any generics for different stdio streams.Functionally this necessitated the addition of `Async{Read,Write}`implementations for some &quot;base&quot; implementations of stdio primitives.Implementations were mostly trivial except for a few adapters which weresignificantly more complicated, namely the `Async{Read,Write}Stream`adapter which converts a single `Async{Read,Write}` into the stdio of acomponent.Finally the stdin implementation for p3 was refactored to avoid use of`tokio::io::stdin()` which generally isn&apos;t safe to use. It&apos;s replacedwith a custom `AsyncRead` using the worker thread implementation we havein the crate already.Eventually I hope to remove the distinction between `p{2,3}::WasiCtx`and have these be the same type. This will make it nicer to only have asingle `WasiView` trait and additionally make it easier tosimultaneously implement all of WASIp{1,2,3}.* Fix build of C API* Fix build of `wasmtime serve`

            List of files:
            /wasmtime-44.0.1/crates/wasi/src/cli/empty.rs</description>
        <pubDate>Fri, 01 Aug 2025 23:40:08 +0000</pubDate>
        <dc:creator>Alex Crichton &lt;alex@alexcrichton.com&gt;</dc:creator>
    </item>
</channel>
</rss>
