Skip to content

Latest commit

 

History

History
 
 

README.md

Echo Messaging

This is a simple Rust Wasm example that uses wasmcloud:messaging to echo back any message it receives.

Prerequisites

  • cargo 1.75
  • wash 0.27.0

Building

wash build

Running with wasmCloud

Ensuring you've built your component with wash build, you can launch wasmCloud and deploy the full hello world application with the following commands. Once the application reports as Deployed in the application list, you can use the NATS CLI to send it a request.

wash up -d
wash app deploy ./wadm.yaml
wash app get
nats req "wasmcloud.echo" "HELLLLOOOOOO"

And in response:

HELLLLOOOOOO

Adding Capabilities

To learn how to extend this example with additional capabilities, see the Adding Capabilities section of the wasmCloud documentation.