Rust Axum

R
Renaudil y a 2 jours
0

Description

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

npx boilerapp rust-axum

Documentación

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

\

Prix

Gratuit

FREE

Comentarios (0)

FAQ

Preguntas Frecuentes

¿Tienes una pregunta? Tenemos las respuestas. Si no encuentras lo que buscas, no dudes en contactarnos.

Boilerapp es una plataforma comunitaria dedicada a compartir boilerplates, starter kits y plantillas de proyectos para desarrolladores. Nuestro objetivo es simple: hacerte ahorrar tiempo en la configuración inicial (setup) para que puedas programar lo que realmente importa. Ya busques una base de código simple o un proyecto SaaS completo, lo encontrarás aquí.

¿Tienes otras preguntas?

Nuestro equipo está aquí para ayudarte. Contáctanos y te responderemos lo antes posible.

Rust Axum | BoilerApp