---
title: "Rust Axum"
description: "A Rust web application using the Axum framework with streaming capabilities on Vercel."
url: "https://vercel.com/templates/other/rust-axum"
links:
  repository: "https://github.com/vercel/examples/tree/main/rust/axum"
  demo: "https://rust-axum.vercel.dev"
  deploy: "https://vercel.com/new/clone?demo-title=Rust+Axum&demo-description=A+Rust+web+application+using+the+Axum+framework+with+streaming+capabilities+on+Vercel.&demo-url=https%3A%2F%2Frust-axum.vercel.dev&project-name=rust-axum&repository-name=rust-axum&repository-url=https%3A%2F%2Fgithub.com%2Fvercel%2Fexamples%2Ftree%2Fmain%2Frust%2Faxum&demo-image=%2F%2Fimages.ctfassets.net%2Fe5382hct74si%2FSxBy7ftbrOeyh4SU7prqm%2F8a843be6ef7da3e5685d93d539165ebd%2Frust-dark.png"
---

# Rust Axum

A Rust web application using the Axum framework with streaming capabilities on Vercel.

# Rust Axum Web Framework

This example shows how to deploy a Rust web application using the Axum framework on Vercel with streaming capabilities.

## Project Structure

- `api/axum.rs` - Main Axum application
  - `/` - Entrypoint with an interactive HTML interface for streaming
  - `/stream` - Streaming endpoint
  - `/users` - Post request endpoint
- `Cargo.toml` - Rust dependencies and binary configuration
- `vercel.json` - Vercel deployment configuration

## Development

Clone the repository:

```bash
git clone https://github.com/vercel/examples.git
cd examples/rust/axum
```

Install Rust if you haven't already:

```bash
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
```

Test locally:

```bash
vc dev
```

## Related Templates

### [Rust Hello World](https://vercel.com/templates/other/rust-hello-world)

Simple Rust serverless functions demonstrating basic HTTP handling and performance benchmarks.

---

## Additional documentation

The [Vercel Knowledge Base](https://vercel.com/kb) contains guides and answers to common questions about Vercel, including deployment, framework configuration, domains, caching, and troubleshooting.
