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

文档

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

评论 (0)

常见问题

常见问题解答 (FAQ)

有问题?我们有答案。如果您找不到想要的答案,请随时联络我们。

Boilerapp 是一个专门用于分享 Boilerplates、入门套件(Starter Kits)和项目模版的开发者社区平台。我们的目标很简单:为您节省初始配置(Setup)的时间,让您可以专注于真正重要的代码。无论您是在寻找简单的代码库还是完整的 SaaS 项目,都能在这里找到。

还有其他问题?

我们的团队随时为您提供帮助。联络我们,我们将尽快回复。

Rust Axum | BoilerApp