All Projects → zigwasm → wasmer-zig

zigwasm / wasmer-zig

Licence: MIT License
Zig bindings for the Wasmer WebAssembly runtime

Programming Languages

Zig
133 projects

Projects that are alternatives of or similar to wasmer-zig

Lunatic
Lunatic is an Erlang-inspired runtime for WebAssembly
Stars: ✭ 2,074 (+8541.67%)
Mutual labels:  wasm, wasi, wasmer
Wasmer
🚀 The leading WebAssembly Runtime supporting WASI and Emscripten
Stars: ✭ 11,047 (+45929.17%)
Mutual labels:  wasm, wasi, wasmer
wasi-worker
WASM / WASI interface for browser service workers
Stars: ✭ 31 (+29.17%)
Mutual labels:  wasm, wasi
Lucet
Lucet, the Sandboxing WebAssembly Compiler.
Stars: ✭ 4,006 (+16591.67%)
Mutual labels:  wasm, wasi
Tinygo
Go compiler for small places. Microcontrollers, WebAssembly (WASM/WASI), and command-line tools. Based on LLVM.
Stars: ✭ 9,068 (+37683.33%)
Mutual labels:  wasm, wasi
Wasmite
Now WebAssembly has proper testing, unit-testing and debugging 🤗
Stars: ✭ 20 (-16.67%)
Mutual labels:  wasm, wasmer
Wasmtime
Standalone JIT-style runtime for WebAssembly, using Cranelift
Stars: ✭ 6,413 (+26620.83%)
Mutual labels:  wasm, wasi
Krustlet
Kubernetes Rust Kubelet
Stars: ✭ 2,391 (+9862.5%)
Mutual labels:  wasm, wasi
node-wasi
WASI for Node.js
Stars: ✭ 64 (+166.67%)
Mutual labels:  wasm, wasi
oasis-rs
A humane blockchain programming framework.
Stars: ✭ 71 (+195.83%)
Mutual labels:  wasm, wasi
holyc
An easy to use C++ to WASM compiler (Highly-experimental)
Stars: ✭ 33 (+37.5%)
Mutual labels:  wasm
idris-codegen-wasm
WebAssembly Code Generation Backend for Idris Compiler
Stars: ✭ 79 (+229.17%)
Mutual labels:  wasm
golang-wasm
Golang-WASM provides a simple idiomatic, and comprehensive API and bindings for working with WebAssembly for Go and JavaScript developers
Stars: ✭ 57 (+137.5%)
Mutual labels:  wasm
mutator
mutator is an experimental suite of tools aimed at analysis and automation of C/C++ code development
Stars: ✭ 62 (+158.33%)
Mutual labels:  wasm
rustexp
A Rust regular expression editor and tester that runs entirely within the browser!
Stars: ✭ 59 (+145.83%)
Mutual labels:  wasm
swam
WebAssembly engine in Scala
Stars: ✭ 38 (+58.33%)
Mutual labels:  wasm
wapc-rust
Rust-based WebAssembly Host Runtime for waPC-compliant modules
Stars: ✭ 75 (+212.5%)
Mutual labels:  wasm
runno
Browser-based code runner that can be embedded as an iframe or used as a library.
Stars: ✭ 211 (+779.17%)
Mutual labels:  wasm
go-wasm-examples
Some small examples of using Go and WebAssembly
Stars: ✭ 22 (-8.33%)
Mutual labels:  wasm
ux-charts
Simple, responsive, modern Charts with zero dependencies
Stars: ✭ 22 (-8.33%)
Mutual labels:  wasm

wasmer-zig

Zig bindings for the Wasmer WebAssembly runtime.

Disclaimer

This is a work-in-progress library so things will change without notice! Furthermore, building this library and examples requires the latest nightly version of Zig 0.8.0, and gyro package manager.

Building

This library consumes the Wasmer's C API which is auto-installed with each release of Wasmer. The current stable release of Wasmer this embedding relies on is v1.0.2. Therefore, make sure you have wasmer binary installed and in your PATH.

To build this library, simply run

gyro build

Tests can be invoked as follows

gyro build test

Running examples

You can find a few examples of how this library can be used to embed Wasmer in your app and instantiate Wasm modules in the examples/ dir. You can run any example with

gyro build run -Dexample=<example>

In particular, you will find there examples/instance.zig which is a Zig port of Wasmer's instance.c example.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].