Using the Rust Runtime with Vercel functions
Use Rust to build high-performance, memory-safe serverless functions. The Rust runtime runs on Fluid compute for optimal performance and lower latency.
- Configure your project - Add a file with required dependencies
- Create your function - Write handlers in the directory
- Deploy - Push to GitHub or use the Vercel CLI
Create a file in your project root:
Create Rust files in your directory. Each file becomes a serverless function:
For more code examples, please refer to our templates:
Push your code to a connected GitHub repository for automatic deployments.
Deploy directly using the Vercel CLI:
For prebuilt deployments, optimize your :
Feature | Rust Runtime |
|---|---|
| Request metrics |
Was this helpful?