This is a minimal example of a
hyperlight-wasm
host application. It implements just enough of the wasi:http api
to run the sample-wasi-http-kotlin server.
It's forked from https://github.com/hyperlight-dev/hyperlight-wasm-http-example, as the changes here are specific to a Kotlin guest component. It is intended for demonstration purposes only, and not guaranteed to be kept up-to-date.
In general, this example is only a prototype, and relatively hacky and fragile, use at your own risk.
- Rust, including the
x86_64-unknown-nonetarget (which may be installed via e.g.rustup target add x86_64-unknown-none)- Specifically, we need both Rust versions 1.87 and 1.89
clangjust- All requirements of sample-wasi-http-kotlin server, except for wasmtime.
NOTE: The build system fetches multiple git repositories (sometimes recursively). That means that updating one of them might not correctly propagate "all the way up", so if in doubt, run just clean.
just buildjust runFrom another terminal, you can then test the server with the included curlIt.sh script:
./curlIt.sh