Skip to content

Latest commit

 

History

History
44 lines (32 loc) · 2 KB

README.md

File metadata and controls

44 lines (32 loc) · 2 KB

Rust examples for WasmEdge

Simple Rust applications that run in WasmEdge. They also serve as a good learning resource for the Rust language.

Prerequisites

You can just install Docker Desktop.

Or, you could install Rust and WasmEdge as follows.

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
source "$HOME/.cargo/env"
rustup target add wasm32-wasi

curl -sSf https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/utils/install.sh | sudo bash -s -- -p /usr/local

Examples

This set of examples demonstrate Rust apps that each has a main() function and can be started and executed a standalone app, such as a microservice. All examples are dockerized so that you can get started easily.

More examples

For Rust apps that compile to Wasm and run inside WasmEdge.