Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
bytecodealliance
GitHub Repository: bytecodealliance/wasmtime
Path: blob/main/docs/examples-hello-world.md
2452 views

Hello, world!

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

This example shows off how to instantiate a simple wasm module and interact with it.

Wasm Source

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

Host Source

{{#include ../examples/hello.rs}}
{{#include ../examples/hello.c}}
{{#include ../examples/hello.cc}}