---
title: "Echo Messaging | wasmCloud"
description: "This is a simple Rust Wasm example that uses wasmcloud:messaging to echo back any message it receives."
canonical: "https://wasmcloud.com/docs/v1/examples/rust/component/echo-messaging/"
---

This is documentation for wasmCloud **v1**, which is no longer actively maintained.

For up-to-date documentation, see the **[latest version](https://wasmcloud.com/docs/)** (v2).

Version: v1

# 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`](https://wasmcloud.com/docs/v1/installation/) 0.27.0

## Building

bash

```bash
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](https://github.com/nats-io/natscli) to send it a request.

shell

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

And in response:

shell

```shell
HELLLLOOOOOO
```

## Adding Capabilities

To learn how to extend this example with additional capabilities, see the [Adding Capabilities](https://wasmcloud.com/docs/v1/tour/add-features/?lang=rust) section of the wasmCloud documentation.

Last updated on **Nov 20, 2026** by **Victor Adossi**
