<?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 define_module.cc</title>
    <description></description>
    <language>en</language>
    <copyright>Copyright 2015</copyright>
    <generator>Java</generator><item>
        <title>cde2e04f - Fill out more of the C++ API for components (#11889)</title>
        <link>http://172.16.0.5:8080/history/wasmtime-44.0.1/crates/c-api/tests/component/define_module.cc#cde2e04f</link>
        <description>Fill out more of the C++ API for components (#11889)* capi: Add a C++ API for `component::Linker`Just a bare-bones API for now with functionality that&apos;s possible to fillout. Notably instantiation and defining functions is not yet possible inC++. Some more feature-parity is also added with the core linkers aswell.* capi: Add bindings for component instances* capi: Delete wasip2.h header fileUpon reflection I realize that this is not actually necessary and isotherwise a duplicate of the functionality in `wasi.h`. All of thefunctionality in `wasi.h` is already supported to power WASIp2-definedAPIs in a linker, which is enabled by the `WasiView` trait redirectingto the `WasiView for WasiP1Ctx` implementation. This is similar to howthe `wasmtime` CLI works where a P1 context is always created and thenit&apos;s conditionally used for either core wasm or components.Effectively this is a deletion of duplicate functionality in the C APIbut no underlying functionality is lost. Translating information topreexisting WASI calls will work the same as using the wasip2 APIs before.* capi: Start bindings for component functions* capi: Bind component values in the C++ API* capi: Finish bindings for component functions/linkersAll the pieces are now in place to use the C++ API in testing.* Fix compilation of CLI* Fix compile on MSVC* Try again to fix msvc compat* Fix `get_f32` and `get_f64` return values* Fix signed return values* Remove no-longer-needed `capi_transfer` function* Try to fix msvc again* Remove std::optional constructor of `Val`* Fix another namespace clash on msvc* One day I surely may understand a fraction of either C++ or MSVC, buttoday is not that day.* Document internal macro* Add other internal docs

            List of files:
            /wasmtime-44.0.1/crates/c-api/tests/component/define_module.cc</description>
        <pubDate>Tue, 21 Oct 2025 19:27:10 +0000</pubDate>
        <dc:creator>Alex Crichton &lt;alex@alexcrichton.com&gt;</dc:creator>
    </item>
<item>
        <title>579ec46b - capi: Start filling out C++ API for components (#11880)</title>
        <link>http://172.16.0.5:8080/history/wasmtime-44.0.1/crates/c-api/tests/component/define_module.cc#579ec46b</link>
        <description>capi: Start filling out C++ API for components (#11880)* capi: Start filling out C++ API for componentsI&apos;d like to write some fancier tests soon for this, but I&apos;m not a fan ofwriting C, so this commit starts to fill out the C++ API for componentsby adding a few wrapper classes. Like the rest of the C++ API this isall built as a wrapper around the C API.This commit introduces a `Component` type and an `ExportIndex` type togo along with it. This binds the `component.h` header file in C++. Thisalso starts a convention of `capi` methods to access the underlyingpointer/value as a conventional way to mix the C/C++ APIs which willallow gradually migrating tests to C++.* Fix clippy lint

            List of files:
            /wasmtime-44.0.1/crates/c-api/tests/component/define_module.cc</description>
        <pubDate>Mon, 20 Oct 2025 16:47:31 +0000</pubDate>
        <dc:creator>Alex Crichton &lt;alex@alexcrichton.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/crates/c-api/tests/component/define_module.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/component/define_module.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>ce3c1a72 - c-api: component-model: Lookup function from an instance (#10675)</title>
        <link>http://172.16.0.5:8080/history/wasmtime-44.0.1/crates/c-api/tests/component/define_module.cc#ce3c1a72</link>
        <description>c-api: component-model: Lookup function from an instance (#10675)* c-api: component-model: Lookup function from an instance* c-api: component-model: Take strings as `wasm_name_t`* Use export indices* Shared `CHECK_ERR` macro* Pass names as a pointer and a size, return nullable pointers* Use `std::str::from_utf8()` instead of `str::from_utf8()`* Remove doc link?

            List of files:
            /wasmtime-44.0.1/crates/c-api/tests/component/define_module.cc</description>
        <pubDate>Mon, 28 Apr 2025 19:23:36 +0000</pubDate>
        <dc:creator>MangoPeachGrape &lt;191630121+MangoPeachGrape@users.noreply.github.com&gt;</dc:creator>
    </item>
<item>
        <title>5e8f7c4c - c-api: Module definitions in component model linker (#10651)</title>
        <link>http://172.16.0.5:8080/history/wasmtime-44.0.1/crates/c-api/tests/component/define_module.cc#5e8f7c4c</link>
        <description>c-api: Module definitions in component model linker (#10651)* c-api: Module definitions in component model linker* Documentation and a test

            List of files:
            /wasmtime-44.0.1/crates/c-api/tests/component/define_module.cc</description>
        <pubDate>Thu, 24 Apr 2025 20:03:21 +0000</pubDate>
        <dc:creator>MangoPeachGrape &lt;191630121+MangoPeachGrape@users.noreply.github.com&gt;</dc:creator>
    </item>
</channel>
</rss>
