Skip to content

Latest commit

 

History

History
41 lines (31 loc) · 1.71 KB

README.md

File metadata and controls

41 lines (31 loc) · 1.71 KB

You're probably looking for jcbhmr-hello-world-rust-wasmer-app.wasmer.app

"Hello world!" Rust Wasmer app

🟪 "Hello world!" demo Wasmer HTTP server application

🟪 Uses Wasmer's new app platform
🦀 Written in Rust
🅰 Uses the Axum HTTP server library
👩‍⚖️ 0BSD licensed template

Development

Rust WebAssembly Wasmer

Make sure you have the wasm32-wasi Rust target installed. You'll also need the Wasmer CLI and cargo-wasix installed.

Write the backend Rust code as though it were a normal HTTP server. That HTTP server will compile to WASIX which will then be started by Wasmer's app backend and have the request forwarded to it. Then after an indeterminate amount of time it will be killed and stop recieving additional requests.

Note that the version fields all mean absolutely nothing in this context. Each time you run wasmer deploy, it will bump the version. That version isn't exposed anywhere to the endpoint.