bytecodealliance / bytecodealliance/wasmtime-py

GC features

Open
#283 1 comment 0 reactions 0 assignees View on GitHub
wasmtime c-api
Dominant language
Python
Stars
539
Forks
69
Avg merge
13m
Merged PRs (30d)
1

Description

Is it possible to use GC features like struct or array from wasmtime-py?

```python
from wasmtime import Store, Module, Instance, Config, Engine
config = Config()
config.wasm_gc = True
engine = Engine(config)
store = Store(engine)
module = Module(store.engine, """
(module
(type $point (struct (field $x i64) (field $y i64)))
(func $myadd (export "myadd") (param i32 i32) (result i32)
(local.get 0)
(local.get 1)
(i32.add)
)
)
""")
```

```
struct indexed types not supported without the gc feature (at offset 0xb)
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.