Migrating our Messages API to Rust
Anthropic migrated its production Messages API from Python to Rust, using the live Python service as an oracle because tests were incomplete and the API kept changing.
Topics Languages
Rust language, crates, or Rust-specific engineering.
Anthropic migrated its production Messages API from Python to Rust, using the live Python service as an oracle because tests were incomplete and the API kept changing.
Cloudflare extended Flamingo, its Rust-based end-to-end testing framework that runs hundreds of millions of tests a day against the production edge, with a DNS module to catch slow, partial DNS failures that unit tests and health checks miss.
Before launching Claude Docs, a two-week "chaos loop" had Claude Code drive a production-mirroring staging cluster at over a million synthetic docs a day, inject failures (mass reconnects, killed servers, stalled databases, hot docs), read Datadog telemetry, and ship fixes, with a human approving only hard-to-undo changes like schema or storage layout.
Rust nightly now runs the compiler frontend (type checking, borrow checking) in parallel by default since nightly-2026-11-14, to surface bugs ahead of stabilization.
Rust 1.100.0 stabilizes the never type `!` after a decade and five failed attempts, makes `Infallible` an alias for it, and switches never-type fallback from `()` to `!` in pre-2024 editions, a rare-case breaking change that may also surface more unreachable code.
tar-codec is a new Rust tar parser that uv uses from 0.13 onward to read Python source distributions.
Rust 1.99.1 is a point release fixing three regressions. LLVM's loop-idiom-wcslen pass could emit calls to `wcslen` on targets lacking it, breaking UEFI builds using `std`, so compiler-builtins now provides a fallback.
Toasty, the async Rust ORM from Tokio's creator, now supports Turso in three modes behind one API: local files with optional concurrent writes (transactions automatically wrapped in BEGIN CONCURRENT), a serverless remote mode over HTTP with URL and auth token, and local-first sync with explicit pull/push calls.
Executable UDFs are now generally available on ClickHouse Cloud across AWS, GCP and Azure, adding a Native runtime for statically linked Rust/Go/C++/JavaScript binaries, outbound network access, per-process memory limits, a deterministic flag that enables the query cache, Cloud API and Terraform support, and per-query UDF metrics in 26.6+.
Grab built sim-rs, a self-contained tick-based marketplace simulator that replays a city-day of bookings and drivers through a closed dispatch loop (demand, supply movement, cancellation models, batching, solver-based allocation, recycling) in tens of minutes, with pluggable stages, portable reproducible run packages, and built-in switchback/spatial A/B/n experiments.
Rust 1.99.0 stabilizes defining C-ABI variadic functions in Rust using `...`, typed as `VaList` (ABI-compatible with C `va_list`) with readable types gated by the `VaArgSafe` trait.
Because TypeScript 7 is compiled in Go and does not expose the ts.Transformer API cross-language, Angular is building a new compiler, the Angular Preprocessor (ngp), that decouples Angular compilation from TypeScript's compiler APIs.
tokenizers v1 encodes text 3 to 30 times faster than v0.23 single-threaded on an Apple M4 Max and scales at 76% of linear across eight cores, while producing identical token IDs and keeping the same API.
Turso offers two SQLite encryption models: native, open-source page-level encryption in its Rust rewrite of SQLite (still behind an --experimental-encryption flag, hex keys) and production-ready BYOK on Turso Cloud, where a base64 key is supplied per connection and never persisted by Turso.
Datadog built dd-trace-rs, an opinionated Rust tracer on top of the OpenTelemetry Rust SDK, to fix fragmented traces, inconsistent sampling and context loss across Rust services.
Bun 1.4 adds 1,517 newly passing Node.js test-suite tests, fixes over 2,900 issues, and rewrites Bun from Zig to Rust.
fearless_simd v0.7 adds u64/i64 vector types, completing integer and float type coverage, plus dynamic byte shuffles via swizzle_dyn, wrapping/saturating widen-narrow conversions, and element shift/rotate helpers.
Ladybird added private browsing, per-profile storage and sandboxing, undo/redo and rich-text editing, geolocation, and working WebAudio in July 2026, and moved most of LibWeb's style and layout pipeline to Rust.
Servo 0.4.0 bundles a record 558 June commits, adding CSS features like experimental attr(), deferred calc() resolution and many media queries (device-width, aspect-ratio, pointer, hover), plus DOM APIs including SharedWorker, CustomElementRegistry constructors and new SubtleCrypto algorithms.
Codex's /goal mode works best for vulnerability hunting when the prompt defines a precise, calibrated outcome rather than a path, and when each agent pursues exactly one outcome.
fearless_simd v0.6 adds AVX-512 support for all operations, including safe invocation of AVX-512 intrinsics through the kernel! macro.
ClickHouse released an official ADBC (Arrow Database Connectivity) driver, written in Rust, that returns query results as Apache Arrow end to end with no row-oriented conversion or staging step.
Bun, a 535k-line Zig JavaScript runtime, was mechanically ported to Rust over 11 days using about 50 continuously running Claude Code workflows.
Turso, a from-scratch SQLite rewrite, is adding formal verification via Aretta AI's Aristo, which turns natural-language intents annotated on code into formally checked properties, to complement its deterministic simulation testing and Antithesis runs.
PgDog is a Rust Postgres proxy whose connection pooler avoids the leaky abstractions of PgBouncer and RDS Proxy.
Servo 0.3.0 bundles May's 391 commits: new font-variant properties, mp4 playback without fast start, multipart and text/plain form encodings, new DOM APIs, a SpiderMonkey 140.10.1 update fixing memory safety CVEs, and breaking embedding API changes to cookies, thread-pool preferences and DiagnosticsLogging.
WAL-RUS is an open-source Rust rewrite of WAL-G's Postgres backup and WAL archival tooling, built because Go's garbage-collected runtime made virtual memory hard to predict in resource-constrained managed Postgres environments where overcommit is disabled.
Modal Servers are a low-latency HTTP/WebSocket/gRPC serving primitive that cut p50 request latency from 39ms to 6ms versus Modal Web Functions by dropping platform-managed queueing and keeping network calls off the hot path.
Alien's pull-mode BYOC operator, which runs inside customer cloud accounts and must survive restarts, network loss and half-applied deployments, replaced hand-rolled JSON state files with an embedded, encrypted Turso database.
Eden, a gateway and control plane for database, API and AI traffic, uses Turso's in-process SQLite-compatible storage with AES-256-GCM whole-database encryption so a single Rust binary can run beside the workloads it governs without a separate Postgres.
Grit is a from-scratch, library-based, memory-safe Rust reimplementation of Git, built largely by swarms of coding agents, that passes over 99% of Git's 42,000-test suite (with email, i18n, p4/svn importers and some midx/bitmap tests deliberately skipped).
Railway built Hikari, its own CDN with 60 POPs and 180+ nodes, in 30 days.
Testing the top 100 crates.io crates by binary-searching Rust releases 1.0–1.94 for the oldest toolchain where `cargo check` succeeds suggests any given Rust compiler stays viable for a dependency-using project for only about two years.
Sixteen parallel Claude Opus 4.6 agents, run in an infinite loop inside Docker containers and coordinating through git-based task lock files, wrote a 100,000-line Rust C compiler from scratch over about 2,000 sessions and $20,000 in API costs.
TursoDB adds native full-text search by embedding Tantivy and implementing its Directory trait on top of Turso's B-tree, storing index "files" as 512KB chunks in an internal table.
PgDog forked pg_query.rs and replaced libpg_query's Protobuf serialization layer with direct bindgen-generated C-to-Rust conversions, making SQL parsing 5.45x faster and deparsing 9.64x faster, with a 25% gain in pgbench throughput.
ClickHouse, a 1.5M-line C++ analytic database, is adopting Rust incrementally rather than rewriting.
Zed's new Settings Editor required replacing its distributed, runtime-registered settings model, where each crate declared its own settings, with centralized strongly typed `UserSettings` and `ProjectSettings` structures that map directly to configuration files.
AgentFS adds an `agentfs mount` command that exposes its SQLite-backed agent filesystem as a real POSIX filesystem via Linux FUSE.
Supabase Wrappers' ClickHouse foreign data wrapper now streams results asynchronously instead of fetching full result sets or fixed batches while blocking the Postgres backend.
Zed implements rainbow brackets without language servers or a persistent syntax tree by running each language's tree-sitter brackets.scm queries over independent 50-row chunks and coloring pairs by nesting depth across 7 cycling theme accent colors.
Zed's project search had throughput close to ripgrep's, but the first result arrived very late.
Corrosion is Fly.io's open-source service discovery system: a Rust program that propagates a SQLite database across thousands of workers via SWIM gossip and QUIC, using the cr-sqlite CRDT extension with last-write-wins logical timestamps instead of distributed consensus.
Turso Database, a Rust rewrite of SQLite, now supports native encryption at rest using AEAD ciphers (AEGIS-256 and AES-GCM).
A settings-loading refactor in Zed changed the auto-update setting's type from `Option<bool>` to `bool`, so a missing user value was treated as an explicit `false` instead of falling back to the default settings file, silently disabling auto-updates in v0.203.0–v0.203.4 and v0.204.0.
SQLite re-parses the entire sqlite_schema table after every ALTER TABLE, so schema changes cost time proportional to total schema size even when only one table is touched.
Turso, a Rust rewrite of SQLite, hit a bug where every write after the database crossed 1GB made SQLite's integrity checks fail, even though Turso's own checks found the file intact.
SQLite re-reads and parses the sqlite_schema table on every new connection, so opening a connection to a database with 10,000 tables takes about 23ms.
dtln-rs is an open source Rust library that runs the DTLN (Dual-Signal Transformation LSTM Network) noise suppression model entirely on the client, with WebAssembly, Node.js and native C-ABI targets for WebRTC apps.
Figma's Rust multiplayer server represented each file node as a BTreeMap from u16 property IDs to pointers, and memory profiling showed this map used over 60% of a file's memory.
Zed now ships a native debugger built on the Debug Adapter Protocol, with out-of-the-box support for Rust, C/C++, JavaScript, Go and Python.
Datadog rewrote its AWS Lambda Extension from a Go build of the full Datadog Agent into a purpose-built Rust sidecar (Project Bottlecap), cutting cold start overhead from about 450 ms to 70 ms, memory from 128 MiB to 77 MiB, and binary size from 55 MB to 7 MB.
ClickHouse added Rust to its C++ codebase as an option for new components rather than a rewrite, starting with BLAKE3, then skim for clickhouse-client history, PRQL as a switchable query dialect, and Databricks' delta-kernel-rs replacing a sketchy C++ Delta Lake implementation.
Postgres Language Server is an LSP implementation for Postgres offering autocompletion, syntax error highlighting, type-checking via PREPARE/EXPLAIN against a live database, and a Squawk-inspired linter, available for VSCode, Neovim and as a CLI.
Datadog runs hundreds of Kafka clusters with millions of partitions and built the Streaming Platform, a control layer that decouples producers and consumers from specific clusters through "Streams" spanning clusters, AZs and Kubernetes environments.
Deno 2.1 lets Wasm modules be imported directly like JavaScript modules, with their exports understood and typechecked.
Zed's Rope, a SumTree of 128-byte chunks, sped up offset-to-point translation by storing u128 bitmasks per chunk marking newlines, char boundaries and UTF-16 widths, replacing a per-character loop.
Zed extensions are written in Rust but never compiled on the user's machine.
Rusty V8, Deno's zero-overhead Rust bindings to V8's C++ API, is now stable and skips 1.0 to align with Chrome versioning, starting at 129.0.0.
Supabase Edge Functions that use npm modules now bundle roughly half as large and boot several times faster.
A Tokio program can deadlock with a single std::sync::Mutex when a spawn_blocking task holds the lock while calling Handle::block_on on a future, and an async task on a worker thread tries to take the same lock.
Supabase Wrappers, a Rust framework for building Postgres Foreign Data Wrappers, now supports WebAssembly FDWs that are downloaded from URLs like GitHub or S3, checksum-verified, cached and run in a sandboxed Wasm runtime inside the Postgres extension.
Zed represents text positions with several coordinate types, each suited to a different job.
Deno cut language server auto-completion latency in large codebases from about 8 seconds to under one second by fixing how its Rust server synchronizes project state with the embedded TypeScript compiler (tsc).
Zed implements its own Vim mode on top of its native editor foundations instead of embedding Neovim, because embedding would mean discarding or duplicating Zed's rope, SumTree, CRDT-based collaboration, render pipeline and async runtime.
Datadog rewrote the Codiga static analyzer from Java to Rust after switching its parser from ANTLR to Tree-sitter, whose Java bindings lacked features like pattern matching.
Zed's Linux port works by implementing GPUI's platform-agnostic `Platform` and `PlatformWindow` traits for Linux.
Firefox's crash reporter was rewritten in Rust, replacing three separate native GUI implementations (Win32, GTK, macOS) and their C++/Objective-C glue, which had no test suite, with a small custom UI abstraction.
Zed represents buffer text with a rope rather than a string, because contiguous strings make mid-file inserts and deletes, line navigation and very large files expensive.
Zed loads third-party Tree-sitter grammars as WebAssembly modules using a hybrid design.
JSR, the JavaScript Registry, splits into components with different reliability targets: a highly available Postgres cluster behind a Rust/Hyper API on Google Cloud Run targeting 99.9%, and a global CDN for package source and npm tarballs targeting 100% uptime.
Zed's GPUI framework runs async Rust without tokio or smol: it uses async_task for tasks and thin wrappers around macOS Grand Central Dispatch as the executor, dispatching Runnables via dispatch_async_f onto the main queue or a high-priority global queue through a trampoline function.
Modal's modal-http service, written in Rust on hyper and Tokio, serves HTTP and WebSocket traffic for serverless functions by translating each request into a function call instead of reverse-proxying to containers.
Neon's Pageserver regressed cold-start and first-query-after-idle latency to seconds after it began shutting down idle per-tenant walredo sidecar processes.
Zed's GPUI renderer dropped frames on Macs running in direct (non-composited) mode because `MetalRenderer::draw` blocked the main thread with `wait_until_completed`.
DotSlash, now open source and written in Rust, replaces platform-specific executables in source control with a small text file (shebang `#!/usr/bin/env dotslash` plus a lenient-JSON manifest) listing per-platform size, hash, format and providers.
GPUI, Zed's Rust UI framework, sidesteps Rust's single-ownership constraints by having a top-level App own every model and view, while code holds reference-counted Entity<T> handles that can only read or update state when given an App or Context.
pg_graphql is a Rust-based Postgres extension that reflects the SQL schema as a GraphQL schema and serves queries through a `graphql.resolve` SQL function, with no separate server.
Zed's port to GPUI 2 is nearing daily usability, and the team is focused on frame-rendering performance measured by holding tab-switch at 60Hz key repeat.
Supabase Wrappers v0.2, a Rust-based Postgres foreign data wrapper framework for querying third-party sources with SQL, adds query pushdown, remote subqueries and per-FDW usage statistics.
Zed is rewriting its editor as Zed2 in three phases (runnable core editing, productivity features like collaboration, terminal and Vim mode, then flagship features like Assistant, Copilot and Chat), aiming for a preview by end of 2023 and open-sourcing shortly after Zed2 supersedes Zed1.
GPUI, Zed's UI framework, settled on its core view traits: `Render` builds a view from a mutable reference each frame, `RenderOnce` builds composable elements by consuming them, and `#[derive(IntoElement)]` lets custom components be passed straight to `div().child(...)`. gpui2 now sizes UI in `rem` units tied to a new `ui_font_size` setting (default 16px, on a 4px grid), so the interface scales independently of buffer font size, though sub-pixel sizes remain unresolved.
Zed's team reports progress porting the editor to GPUI 2, including a new action- and key-context-based keyboard handling API shown with a Rust menu example.
Zed is rewriting its UI framework as GPUI 2 and porting the whole editor onto it before open-sourcing, trading feature work for better ergonomics while keeping GPUI 1's performance.
Weekly roundup from the Zed editor team covering a range of fixes and features.
Zed's weekly team update covers a fix for typing lag with autocomplete.
Zed has started using its new channels feature internally, where members can message, talk, share screens and co-edit projects, and plans to use it to stream development and host office hours once the editor is open-sourced.
Zed's weekly team update covers several threads of editor work.
Mozilla extended UniFFI, its Rust library for auto-generating foreign-language bindings, to emit JavaScript bindings for Firefox Desktop starting in Firefox 105, replacing error-prone hand-written wrappers that undermined Rust's memory safety.
Zed publicly launched its preview channel and reports progress across the editor: Vim search commands, macOS ctrl-click remapped to right click in the platform layer, terminal Cmd+hover navigation, a semantic index that collapses nested tree-sitter symbols to cut embedding tokens, and a lock-contention bug where slow git status in huge repos serializes file scanning.
A Rust HTTP component built from Spin's http-rust template is compiled to wasm32-wasi, deployed to Fermyon Cloud, and made to query a Turso database through the libsql-client crate's spin_backend feature.
V8 startup snapshots can speed up launch of a custom deno_core-based JavaScript runtime at a typically negligible cost in binary size.
Shopify rebuilt its order routing, which picks the inventory location an order ships from, around composable "routing rules".
WhatsApp now automatically verifies end-to-end encryption keys using key transparency: the server maintains an append-only Auditable Key Directory (AKD) mapping accounts to public keys, and every change emits a privacy-preserving audit proof to public storage that anyone can verify.
Supabase Edge Runtime is an MIT-licensed, Rust-based web server built on deno_core that self-hosts Deno Edge Functions (TypeScript, JavaScript, WASM) without code changes.
Buck2 is Meta's from-scratch rewrite of Buck, open sourced with a Rust core and all language rules written in Starlark, and it completes builds about twice as fast as Buck1 internally.