https://github.com/rgl/wasmedge-http-rust-example
Example WasmEdge HTTP Application written in Rust
https://github.com/rgl/wasmedge-http-rust-example
example rust wasm wasmedge webassembly
Last synced: 6 months ago
JSON representation
Example WasmEdge HTTP Application written in Rust
- Host: GitHub
- URL: https://github.com/rgl/wasmedge-http-rust-example
- Owner: rgl
- Created: 2024-02-10T08:48:35.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-02-10T14:04:01.000Z (about 2 years ago)
- Last Synced: 2025-07-27T01:59:32.211Z (8 months ago)
- Topics: example, rust, wasm, wasmedge, webassembly
- Language: Rust
- Homepage:
- Size: 20.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# About
[](https://github.com/rgl/wasmedge-http-rust-example/actions?query=workflow%3Abuild)
Example WasmEdge HTTP Application written in Rust.
# Usage
Install [Rust](https://github.com/rust-lang/rust), the [wasm32-wasi target](https://bytecodealliance.github.io/cargo-wasi/steps.html) and [WasmEdge](https://github.com/WasmEdge/WasmEdge).
Start the application:
```bash
make run
```
Access the HTTP endpoint:
```bash
xdg-open http://localhost:8080
```
## Kubernetes Usage
TODO https://github.com/containerd/runwasi/issues/477
# References
* [Develop WASM Apps in Rust, HTTP Services, Server](https://wasmedge.org/docs/develop/rust/http_service/server/#the-warp-api)
* [Container image for a WASI WebAssembly app](https://github.com/second-state/wasmedge-containers-examples/blob/main/simple_wasi_app.md)
* [wasi-demo-app](https://github.com/containerd/runwasi/tree/containerd-shim-wasmedge/v0.3.0/crates/wasi-demo-app)
* [Done icon](https://icons8.com/icon/uw-X2j32n7Xp/done)