Description
A Rust web application using the Axum framework with streaming capabilities on Vercel.
npx boilerapp rust-axumDocumentation
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 configurationvercel.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
\
Prix
Gratuit