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

This example demonstrates how to create Rust serverless functions on Vercel with multiple endpoints showcasing different capabilities.
api/hello - Basic handler with json responseapi/streaming - Streaming response exampleapi/realistic-math-bench - Mathematical benchmarkapi/slower-bench - Performance benchmarkCargo.toml - Rust dependencies and multiple binary configurationsClone the repository:
git clone https://github.com/vercel/examples.gitcd examples/rust/hello-worldInstall Rust if you haven't already:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | shTest locally (requires Rust toolchain):
vc dev