<?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 simple.cc</title>
    <description></description>
    <language>en</language>
    <copyright>Copyright 2015</copyright>
    <generator>Java</generator><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/crates/c-api/tests/simple.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/crates/c-api/tests/simple.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>3a5dda5f - Split final C++ items out of `wasmtime.hh` (#10692)</title>
        <link>http://172.16.0.5:8080/history/wasmtime-44.0.1/crates/c-api/tests/simple.cc#3a5dda5f</link>
        <description>Split final C++ items out of `wasmtime.hh` (#10692)* Split final C++ items out of `wasmtime.hh`Now `wasmtime.hh` is just an &quot;amalgamation&quot; header to includeeverything, yay!* Format files* Try to fix MSVC

            List of files:
            /wasmtime-44.0.1/crates/c-api/tests/simple.cc</description>
        <pubDate>Mon, 28 Apr 2025 23:39:04 +0000</pubDate>
        <dc:creator>Alex Crichton &lt;alex@alexcrichton.com&gt;</dc:creator>
    </item>
<item>
        <title>a045eaa9 - Run `clang-format` over more files (#10689)</title>
        <link>http://172.16.0.5:8080/history/wasmtime-44.0.1/crates/c-api/tests/simple.cc#a045eaa9</link>
        <description>Run `clang-format` over more files (#10689)We were already running it over most `*.c` files and other ones butforgot the `*.hh` and `*.cc` extensions which are being used for C++bindings, so add those in and then run the formatter.

            List of files:
            /wasmtime-44.0.1/crates/c-api/tests/simple.cc</description>
        <pubDate>Mon, 28 Apr 2025 20:38:14 +0000</pubDate>
        <dc:creator>Alex Crichton &lt;alex@alexcrichton.com&gt;</dc:creator>
    </item>
<item>
        <title>453bb9a4 - Split C++ Func/Table/Memory/Global to their own headers (#10688)</title>
        <link>http://172.16.0.5:8080/history/wasmtime-44.0.1/crates/c-api/tests/simple.cc#453bb9a4</link>
        <description>Split C++ Func/Table/Memory/Global to their own headers (#10688)I did my best to separate out headers but I don&apos;t understand enough C++to fully sever `val.hh` and `func.hh` so they sort of circularlyreference each other now.

            List of files:
            /wasmtime-44.0.1/crates/c-api/tests/simple.cc</description>
        <pubDate>Mon, 28 Apr 2025 19:41:13 +0000</pubDate>
        <dc:creator>Alex Crichton &lt;alex@alexcrichton.com&gt;</dc:creator>
    </item>
<item>
        <title>ebc25c84 - Split out some more C++ types to their own headers (#10658)</title>
        <link>http://172.16.0.5:8080/history/wasmtime-44.0.1/crates/c-api/tests/simple.cc#ebc25c84</link>
        <description>Split out some more C++ types to their own headers (#10658)* Move C++ WASI configuration to its own header* Move C++ `Store` to its own fileI tried binding `wasmtime_store_epoch_deadline_callback` in C++ but Idon&apos;t know enough C++ to figure out the syntax for doing so.* Move C++ Val to its own headerAlso bind `AnyRef` while I&apos;m here with some small tests.

            List of files:
            /wasmtime-44.0.1/crates/c-api/tests/simple.cc</description>
        <pubDate>Wed, 23 Apr 2025 21:07:22 +0000</pubDate>
        <dc:creator>Alex Crichton &lt;alex@alexcrichton.com&gt;</dc:creator>
    </item>
<item>
        <title>d06f6517 - Move the C++ `Trap` and related types to its own header (#10647)</title>
        <link>http://172.16.0.5:8080/history/wasmtime-44.0.1/crates/c-api/tests/simple.cc#d06f6517</link>
        <description>Move the C++ `Trap` and related types to its own header (#10647)

            List of files:
            /wasmtime-44.0.1/crates/c-api/tests/simple.cc</description>
        <pubDate>Tue, 22 Apr 2025 23:43:18 +0000</pubDate>
        <dc:creator>Alex Crichton &lt;alex@alexcrichton.com&gt;</dc:creator>
    </item>
<item>
        <title>d460709e - Move C++ `Config` to its own header (#10634)</title>
        <link>http://172.16.0.5:8080/history/wasmtime-44.0.1/crates/c-api/tests/simple.cc#d460709e</link>
        <description>Move C++ `Config` to its own header (#10634)Also bind APIs which were added since this was created. Also copy oversome `#define` guards for the C methods into the C++ header as well. Andfinally update tests for what&apos;s added.

            List of files:
            /wasmtime-44.0.1/crates/c-api/tests/simple.cc</description>
        <pubDate>Tue, 22 Apr 2025 16:23:01 +0000</pubDate>
        <dc:creator>Alex Crichton &lt;alex@alexcrichton.com&gt;</dc:creator>
    </item>
<item>
        <title>13ebd6f5 - c-api: Bring wasmtime-cpp into this repository (#10582)</title>
        <link>http://172.16.0.5:8080/history/wasmtime-44.0.1/crates/c-api/tests/simple.cc#13ebd6f5</link>
        <description>c-api: Bring wasmtime-cpp into this repository (#10582)* c-api: Bring wasmtime-cpp into this repository.`wasmtime-cpp/include/wasmtime.hh` -&gt; `/crates/c-api/include/``wasmtime-cpp/tests/*` -&gt; `/crates/c-api/tests/``wasmtime-cpp/examples/*` -&gt; `/examples/`See discussion in #10566 for more context.* Make tests disabled by default prtest:full* Mention C++ API in the c-api README* Enable C++ only for tests* Add *.hh files to doxygenThis requires disabling warnings on undocumented, as `wasm.hh` hasundocumeted structuresAlso fix urls in `wasmtime.hh`* Re-enable `WARN_IF_UNDOCUMENTED`This required excluding `wasm.hh`, `wasmtime::detail` namespace, and somemacros.Also documented two overloads to `Func::call()`

            List of files:
            /wasmtime-44.0.1/crates/c-api/tests/simple.cc</description>
        <pubDate>Wed, 16 Apr 2025 18:28:47 +0000</pubDate>
        <dc:creator>MangoPeachGrape &lt;191630121+MangoPeachGrape@users.noreply.github.com&gt;</dc:creator>
    </item>
</channel>
</rss>
