<?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 anyref.cc</title>
    <description></description>
    <language>en</language>
    <copyright>Copyright 2015</copyright>
    <generator>Java</generator><item>
        <title>b34556f9 - C++ API: Make `wasmtime::Store::gc` return a `Result` (#12439)</title>
        <link>http://172.16.0.5:8080/history/wasmtime-44.0.1/examples/anyref.cc#b34556f9</link>
        <description>C++ API: Make `wasmtime::Store::gc` return a `Result` (#12439)* C++ API: Make `Store::gc()` return a `Result`* Handle GC errors in C++ example programs* clang format

            List of files:
            /wasmtime-44.0.1/examples/anyref.cc</description>
        <pubDate>Mon, 26 Jan 2026 21:45:00 +0000</pubDate>
        <dc:creator>Nick Fitzgerald &lt;fitzgen@gmail.com&gt;</dc:creator>
    </item>
<item>
        <title>adff9d9d - Fix externref/anyref ownership in C/C++ API (#11799)</title>
        <link>http://172.16.0.5:8080/history/wasmtime-44.0.1/examples/anyref.cc#adff9d9d</link>
        <description>Fix externref/anyref ownership in C/C++ API (#11799)* Fix externref/anyref ownership in C/C++ APIThis commit is a follow-up to #11514 which was discovered throughfailing tests in the wasmtime-py repository when updating to Wasmtime37.0.0. Effectively a combination of bugs in the Rust API meant that itwasn&apos;t possible to use `externref` or `anyref` bindings correctly. TheRust changes in this commit are:* `wasmtime_val_unroot` correctly drops the value now as opposed to  effectively being a noop from before (typo of using `as_externref` vs  `from_externref`).* `wasmtime_{anyref,externref,val}_t` now have a `Drop` implementation  in Rust to correctly drop them if a value in Rust is dropped. This is  required to correctly manage memory in the `wasmtime_func_{call,new}`  implementations, for example.* `wasmtime_{anyref,externref,val}_clone` no longer have an unnecessary  context parameter.* `wasmtime_{anyref,externref,val}_unroot` no longer have an unnecessary  context parameter.Changes in the C/C++ APIs are:* `Result::{ok,err}_ref` APIs were added in addition to the preexisting  rvalue accessors.* Loading/storing typed arguments now has an overload for `const T&amp;` and  `T&amp;&amp;` which behaves differently. Notably transferring ownership for  `T&amp;&amp;` and not for `const T&amp;`. This means that passing parameters when  calling a wasm function uses `const T&amp;`, but passing results from a  host import uses `T&amp;&amp;`.* `TypedFunc::call` now uses `const Params&amp;` instead of `Params` to  explicitly specify it doesn&apos;t modify the parameters and forces using  the `const T&amp;` store method.* `Store::gc` is now a convenience method for `store.context().gc()`* `ExternRef`, `AnyRef`, and `Val` now have ownership semantics and  destructors. This matches the spirit of #11514 for Rust but models it  in C++ as well. This required filling out move/copy  constructors/assignments.* The explicit `ExternRef` now takes `std::any` instead of `T`.* Minor issues related to ownership are fixed in `Val` bindings.Valgrind was used to ensure that there were no leaks for the test suitewhich additionally resulted in a number of `*_delete` calls being addedto tests using the C API (accidental omissions).The original goal of this change was to be a patch release for 37.0.1 toenable updating wasmtime-py to the 37.0.x releases of Wasmtime. In theend though the changes here were broad enough that I no longer feel thatthis is a good idea, so wasmtime-py will be skipping the 37 version ofWasmtime.* Run `clang-format`prtest:full

            List of files:
            /wasmtime-44.0.1/examples/anyref.cc</description>
        <pubDate>Tue, 07 Oct 2025 16:36:13 +0000</pubDate>
        <dc:creator>Alex Crichton &lt;alex@alexcrichton.com&gt;</dc:creator>
    </item>
<item>
        <title>eaa01d7b - [docs] Add C++ chapter and missing examples (#11569)</title>
        <link>http://172.16.0.5:8080/history/wasmtime-44.0.1/examples/anyref.cc#eaa01d7b</link>
        <description>[docs] Add C++ chapter and missing examples (#11569)* [docs] Add C++ chapter and missing examplesThis adds a chapter for C++ embedding. The chapter intro is rudimentary, but there are a bunch more examples now: I added C++ ports for everything that already had both a Rust and a C version available, matching the Rust version&apos;s behavior where applicable.* [example] Fix paths in `examples/wasip1/main.c`* [docs] Add entries for additional Rust and C embedding examplesThese examples already existed, but didn&apos;t have entries in the docs.It&apos;ll probably make sense to restructure all of this at some point and move the examples into language-specific folders.* [docs] Remove references to Conan packages from README.mdThese packages haven&apos;t been updated since Wasmtime 18, so we shouldn&apos;t link to them for now.* Format cpp files* Format even more cpp files* Fix some warnings in C++ headers* Simplify threads.cc example* Update docs/examples-c-serialize.mdCo-authored-by: Nick Fitzgerald &lt;fitzgen@gmail.com&gt;* [example] Don&apos;t try, do.* [docs] Restore CMake link in README* [docs] Improve examples/README.md* [docs] Address review feedback---------Co-authored-by: Alex Crichton &lt;alex@alexcrichton.com&gt;Co-authored-by: Nick Fitzgerald &lt;fitzgen@gmail.com&gt;

            List of files:
            /wasmtime-44.0.1/examples/anyref.cc</description>
        <pubDate>Tue, 02 Sep 2025 16:34:49 +0000</pubDate>
        <dc:creator>Till Schneidereit &lt;till@tillschneidereit.net&gt;</dc:creator>
    </item>
</channel>
</rss>
