Back to Wasmtime

Working with `anyref`

docs/examples-anyref.md

44.0.1695 B
Original Source

Working with anyref

You can also browse this source code online and clone the wasmtime repository to run the example locally:

This example demonstrates using anyref values.

Wasm Source

wat
{{#include ../examples/anyref.wat}}

Host Source

<!-- langtabs-start -->
rust
{{#include ../examples/anyref.rs}}
c
{{#include ../examples/anyref.c}}
cpp
{{#include ../examples/anyref.cc}}
<!-- langtabs-end -->