Menu

Rust runtime now in public beta for Vercel Functions - Vercel
📰
0

Rust runtime now in public beta for Vercel Functions - Vercel

Vercel News·Florentin Eckl·4 days ago
#OUYMFTHB
#vercel#rust#hello#version#handler#article
Reading 0:00
15s threshold

Today, we are launching first-class support for the Rust runtime beta. This new release of native support, as an evolution of the community Rust runtime , brings the full benefits of Vercel Functions, including Fluid compute (with HTTP response streaming and Active CPU pricing) and an increased environment variable limit from 6KB to 64KB. Rust deployments automatically integrate with Vercel's existing logging, observability, and monitoring systems. To get started, create a Cargo.toml file and a handler function like in the example below: [ package ] name = "rust-hello-world" version = "0.1.0" edition = "2024" [ dependencies ] tokio = { version = "1" , features = [ "full" ] } vercel_runtime = { version = "2" } serde = { version = "1.0" , features = [ "derive" ] } serde_json = "1.0" [ [ bin ] ] name = "hello" path = "api/hello.rs" use serde_json : : { Value , json } ; use vercel_runtime : : { Error , Request , run , service_fn } ; # [ tokio : : main ] async fn main ( ) - > Result < ( ) , Error > { let…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.

Read More