New Project

Rust Axum

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

DeployView Demo

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:

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

Install Rust if you haven't already:

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

Test locally:

vc dev
GitHub Repovercel/examples
LicenseView License
Use Cases
Starter
Stack
Other
None

Related Templates

Rust Hello World

Simple Rust serverless functions demonstrating basic HTTP handling and performance benchmarks.
Rust Hello World thumbnail
DeployView Demo