Menu
Urgent
React2Shell security update

Using the Rust Runtime with Vercel functions

Last updated

The Rust runtime is available in Beta on all plans

Use Rust to build high-performance, memory-safe serverless functions. The Rust runtime runs on Fluid compute for optimal performance and lower latency.

  1. Configure your project - Add a file with required dependencies
  2. Create your function - Write handlers in the directory
  3. 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:

vercel/examples.

Push your code to a connected GitHub repository for automatic deployments.

Deploy directly using the Vercel CLI:

For prebuilt deployments, optimize your :

Rust Runtime feature support table
Feature
Rust Runtime

Fluid compute

Active CPU

Streaming

waitUntil

Logs

Request metrics

Was this helpful?

supported.