Skip to content

Commit a4b1224

Browse files
committed
readme: add module description
1 parent afb0880 commit a4b1224

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

README.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# [WIP] wasmer-zig-api
2+
3+
Zig bindings for the [Wasmer](https://github.com/wasmerio/wasmer/tree/main/lib/c-api) WebAssembly runtime.
4+
5+
This module is based on the zigwasm/wasmer-zig fork. The old API does not work with newer versions of zig, and the main goal of this project is to continue to support the module for newer versions of zig.
6+
7+
All tests from the “wasmer” lib C repository are also reimplemented on zig. You can learn more about the API of this module through rich examples.
8+
9+
The current module works with Zig 0.12.0+.
10+
11+
## Wasmer C API test examples
12+
13+
- [ ] early-exit.c
14+
- [ ] exports-function.c
15+
- [ ] exports-global.c
16+
- [ ] features.c
17+
- [ ] imports-exports.c
18+
- [x] instance.c
19+
- [x] memory.c
20+
- [ ] memory2.c
21+
- [ ] wasi.c
22+
23+
## Running tests and examples
24+
25+
- Run library unit tests:
26+
```bash
27+
zig build test
28+
```
29+
30+
- Build and run examples:
31+
```bash
32+
zig build run -Dexamples=true
33+
```

0 commit comments

Comments
 (0)