<?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 runtime.rs</title>
    <description></description>
    <language>en</language>
    <copyright>Copyright 2015</copyright>
    <generator>Java</generator><item>
        <title>d41b0a71 - Use `Waker::noop` from Rust 1.85 (#10804)</title>
        <link>http://172.16.0.5:8080/history/wasmtime-44.0.1/crates/wasi/src/runtime.rs#d41b0a71</link>
        <description>Use `Waker::noop` from Rust 1.85 (#10804)Now possible after #10785

            List of files:
            /wasmtime-44.0.1/crates/wasi/src/runtime.rs</description>
        <pubDate>Thu, 22 May 2025 16:19:12 +0000</pubDate>
        <dc:creator>Alex Crichton &lt;alex@alexcrichton.com&gt;</dc:creator>
    </item>
<item>
        <title>e8d5e3ae - Initial implementation of Wasi-tls (Transport Layer Security)  (#10249)</title>
        <link>http://172.16.0.5:8080/history/wasmtime-44.0.1/crates/wasi/src/runtime.rs#e8d5e3ae</link>
        <description>Initial implementation of Wasi-tls (Transport Layer Security)  (#10249)* Initial implementation of wasi-tlsThis crate provides the Wasmtime host implementation for the [wasi-tls] API.The [wasi-tls] world allows WebAssembly modules to perform SSL/TLS operations,such as establishing secure connections to servers. TLS often relies on other wasi networking systemsto provide the stream so it will be common to enable the [wasi:cli] world as well with the networking features enabled.The initial implemntation is using rustls.Signed-off-by: James Sturtevant &lt;jsturtevant@gmail.com&gt;* Remove configuration object for nowSigned-off-by: James Sturtevant &lt;jstur@microsoft.com&gt;* Update cargo patch to use temp branchSigned-off-by: James Sturtevant &lt;jstur@microsoft.com&gt;* Rename tcp streams to wasistreams to be more genericSigned-off-by: James Sturtevant &lt;jstur@microsoft.com&gt;* gate the wasi-tls ctx behind a featureSigned-off-by: James Sturtevant &lt;jstur@microsoft.com&gt;* cleanup and clippy fixesSigned-off-by: James Sturtevant &lt;jstur@microsoft.com&gt;* Fix issue when another pollable cancelsSigned-off-by: James Sturtevant &lt;jstur@microsoft.com&gt;* prtest:fullSigned-off-by: James Sturtevant &lt;jstur@microsoft.com&gt;* Skip test on riscv64/s390xSigned-off-by: James Sturtevant &lt;jstur@microsoft.com&gt;* Drop debug info to support tests on pulley based platformsSigned-off-by: James Sturtevant &lt;jstur@microsoft.com&gt;* Update signature of `close-notify`* Use draft versionSigned-off-by: James Sturtevant &lt;jstur@microsoft.com&gt;* Remove patchesSigned-off-by: James Sturtevant &lt;jstur@microsoft.com&gt;* Ungate tls on riscv64 and s390x* Un-gate wais-http on riscv64/s390x as well* Add wasmtime-wasi-tls to publish list* Add wasmtime-wasi-tls to public API crate list* Revert some changes to Cargo.lock---------Signed-off-by: James Sturtevant &lt;jsturtevant@gmail.com&gt;Signed-off-by: James Sturtevant &lt;jstur@microsoft.com&gt;Co-authored-by: badeend &lt;github@davebakker.io&gt;Co-authored-by: Alex Crichton &lt;alex@alexcrichton.com&gt;

            List of files:
            /wasmtime-44.0.1/crates/wasi/src/runtime.rs</description>
        <pubDate>Fri, 07 Mar 2025 19:30:07 +0000</pubDate>
        <dc:creator>James Sturtevant &lt;jstur@microsoft.com&gt;</dc:creator>
    </item>
<item>
        <title>a2770fc5 - Fix typo (#9991)</title>
        <link>http://172.16.0.5:8080/history/wasmtime-44.0.1/crates/wasi/src/runtime.rs#a2770fc5</link>
        <description>Fix typo (#9991)

            List of files:
            /wasmtime-44.0.1/crates/wasi/src/runtime.rs</description>
        <pubDate>Mon, 13 Jan 2025 15:49:46 +0000</pubDate>
        <dc:creator>Asakura Mizu &lt;asakuramizu111@gmail.com&gt;</dc:creator>
    </item>
<item>
        <title>b79a96a1 - Leverage Rust 1.79, 1.80 (#9498)</title>
        <link>http://172.16.0.5:8080/history/wasmtime-44.0.1/crates/wasi/src/runtime.rs#b79a96a1</link>
        <description>Leverage Rust 1.79, 1.80 (#9498)This commit is a follow-up to #9496 to leverage various APIs that theworkspace now has access to. For example most dependencies on the`once_cell` crate are now removed in favor of the types stabilized inthe standard library: `LazyLock` and `LazyCell`. One dependency remainsin the `wasmtime` crate due to the `get_or_try_init` not being stableyet.Some additional helper methods on raw pointer slices are also availablefor removing a few minor `unsafe` blocks.

            List of files:
            /wasmtime-44.0.1/crates/wasi/src/runtime.rs</description>
        <pubDate>Tue, 22 Oct 2024 22:00:39 +0000</pubDate>
        <dc:creator>Alex Crichton &lt;alex@alexcrichton.com&gt;</dc:creator>
    </item>
<item>
        <title>696d19f7 - wasi-sockets: Fix `shutdown` bugs (#9225)</title>
        <link>http://172.16.0.5:8080/history/wasmtime-44.0.1/crates/wasi/src/runtime.rs#696d19f7</link>
        <description>wasi-sockets: Fix `shutdown` bugs (#9225)* Rename:LastWrite -&gt; WriteState,Done -&gt; Ready,Waiting -&gt; Writing* Wrap the TCP streams inside a mutex.And rename `abort_wait` to `cancel`* Move shutdown into the stream types* Fix Linux-specific peculiarity where `recv` continues to work even after `shutdown(sock, SHUT_RD)` has been called.* Refactor poll_cancel* Fix data loss issue.Calling `shutdown` _after_ data has been accepted by `write`, but _before_ it has been fully flushed, caused the in-flight data to be lost.* Simplify poll_cancel* Use tokio::sync::Mutex instead of std::sync::Mutex so I can revert to regular async code

            List of files:
            /wasmtime-44.0.1/crates/wasi/src/runtime.rs</description>
        <pubDate>Thu, 12 Sep 2024 15:20:59 +0000</pubDate>
        <dc:creator>Dave Bakker &lt;github@davebakker.io&gt;</dc:creator>
    </item>
<item>
        <title>28b3cb11 - wasi-filesystem: Implement `HostInputStream` &amp; `HostOutputStream` (#9129)</title>
        <link>http://172.16.0.5:8080/history/wasmtime-44.0.1/crates/wasi/src/runtime.rs#28b3cb11</link>
        <description>wasi-filesystem: Implement `HostInputStream` &amp; `HostOutputStream` (#9129)* Add the ability to generate async drop methods for resources.In the component model, `resource.drop` is a canonical built-in without a proper name. So I invented a custom naming scheme for the component bindgen config. I went with:`&quot;[drop]{resource-name}&quot;` where `{resource-name}` is the name as defined in WIT. e.g. `&quot;[drop]input-stream&quot;`.This shouldn&apos;t conflict with anything existing in the wild as WIT identifiers are not allowed to contain square brackets.* Make `input-stream::drop` &amp;  `output-stream::drop` async* Prevent the guest from (inadvertently) spawning an unlimited amount of background tasks through the FileOutputStream* Properly clean up background tasks for even more types of I/O streams.Unlike FileOutputStream, the background tasks of these stream types are truly async. So aborting _without_ awaiting them was probably already good enough in practice. Nonetheless, waiting for the background to actually shut down just seems like good resource management &quot;hygiene&quot; to me.* Let HostInput/OutputStream provide specialized blocking_* implementations.* Rename filesystem&apos;s `spawn_blocking` -&gt; `run_blocking`* Implement specialized `blocking_write_and_flush` for FileOutputStream.- `write` now always spawns the syscall on a background task, regardless of `allow_blocking_current_thread`.- `blocking_write_and_flush` is newly overridden and continues to do the `allow_blocking_current_thread` trickery that `write` used to do.* Implement `HostInputStream` for `FileInputStream`.- `read` always spawns the syscall on a background task, regardless of `allow_blocking_current_thread`.- `blocking_read` performs the `run_blocking`/`allow_blocking_current_thread` trickery.* In Preview1 adapter: ignore BlockingMode and always perform blocking I/O, as that&apos;s what preview1 did.* Remove special case for FileInputStream and change InputStream enum to be a type alias, just like OutputStream* Remove `[method]output-stream.forward` from bindgen config. It does not exist.* Refactor `blocking_splice` to take advantage of specialized `blocking_read` &amp; `blocking_write_and_flush` implementations* Defer to regular `read` from within `blocking_read` to reduce duplication of logic.

            List of files:
            /wasmtime-44.0.1/crates/wasi/src/runtime.rs</description>
        <pubDate>Thu, 15 Aug 2024 21:10:49 +0000</pubDate>
        <dc:creator>Dave Bakker &lt;github@davebakker.io&gt;</dc:creator>
    </item>
<item>
        <title>0d1efe74 - wasmtime-wasi-http: provide Debug impls in all pub types (#8979)</title>
        <link>http://172.16.0.5:8080/history/wasmtime-44.0.1/crates/wasi/src/runtime.rs#0d1efe74</link>
        <description>wasmtime-wasi-http: provide Debug impls in all pub types (#8979)* wasmtime-wasi: derive(Debug) on AbortOnDropJoinHandle* wasmtime_wasi_http: derive(Debug) on all pub types and their contents

            List of files:
            /wasmtime-44.0.1/crates/wasi/src/runtime.rs</description>
        <pubDate>Mon, 22 Jul 2024 14:31:05 +0000</pubDate>
        <dc:creator>Pat Hickey &lt;pathickey@cubist.dev&gt;</dc:creator>
    </item>
<item>
        <title>28d2990d - Use a multi-threaded Tokio runtime as a fallback (#8229)</title>
        <link>http://172.16.0.5:8080/history/wasmtime-44.0.1/crates/wasi/src/runtime.rs#28d2990d</link>
        <description>Use a multi-threaded Tokio runtime as a fallback (#8229)This commit fixes a bug that was introduced in #8190 and brought up on[Zulip]. In #8190 there was a subtle change in how Tokio and the CLI aremanaged, namely that a Tokio runtime is installed at the start of theCLI to avoid entering/exiting the runtime on each blocking call. Thishad a small performance improvement relative to entering/exiting on eachblocking call. This meant, though, that calls previously blocked with`Runtime::block_on` and now block with `Handle::block_on`. The[documentation of `Handle::block_on`][doc] has a clause that says thatfor single-threaded runtimes I/O and timers won&apos;t work.To fix this issue I&apos;ve switch the fallback runtime to a multi-threadedruntime to ensure that I/O and timers continue to work.[Zulip]: https://bytecodealliance.zulipchat.com/#narrow/stream/219900-wasi/topic/Wasi-http.20requests.20hang/near/429187256[doc]: https://docs.rs/tokio/latest/tokio/runtime/struct.Handle.html#method.block_on

            List of files:
            /wasmtime-44.0.1/crates/wasi/src/runtime.rs</description>
        <pubDate>Mon, 25 Mar 2024 14:43:19 +0000</pubDate>
        <dc:creator>Alex Crichton &lt;alex@alexcrichton.com&gt;</dc:creator>
    </item>
<item>
        <title>6e064f4f - wasmtime-wasi: move bindings to its own file, move runtime to its own mod (#8045)</title>
        <link>http://172.16.0.5:8080/history/wasmtime-44.0.1/crates/wasi/src/runtime.rs#6e064f4f</link>
        <description>wasmtime-wasi: move bindings to its own file, move runtime to its own mod (#8045)* move bindings to its own file, move runtime to its own mod* fix

            List of files:
            /wasmtime-44.0.1/crates/wasi/src/runtime.rs</description>
        <pubDate>Tue, 05 Mar 2024 15:57:41 +0000</pubDate>
        <dc:creator>Pat Hickey &lt;phickey@fastly.com&gt;</dc:creator>
    </item>
</channel>
</rss>
