1# Working with `anyref`
2
3You can also browse this source code online and clone the wasmtime
4repository to run the example locally:
5
6* [Rust](https://github.com/bytecodealliance/wasmtime/blob/main/examples/anyref.rs)
7* [C](https://github.com/bytecodealliance/wasmtime/blob/main/examples/anyref.c)
8* [C++](https://github.com/bytecodealliance/wasmtime/blob/main/examples/anyref.cc)
9
10This example demonstrates using `anyref` values.
11
12## Wasm Source
13
14```wat
15{{#include ../examples/anyref.wat}}
16```
17
18## Host Source
19
20<!-- langtabs-start -->
21
22```rust
23{{#include ../examples/anyref.rs}}
24```
25
26```c
27{{#include ../examples/anyref.c}}
28```
29
30```cpp
31{{#include ../examples/anyref.cc}}
32```
33
34<!-- langtabs-end -->
35