Rust Is Becoming the Layer Generative AI Runs On: 10 Repos Trending This Week
From the publisher’s feed, collected in the ZeroLabs newsroom.
I went through GitHub’s weekly Rust trending page. Almost half of it is AI infrastructure: inference engines, agent gateways, agent runtimes, and NVIDIA’s own CUDA crates.Image generated with ChatGPTI opened GitHub’s weekly trending page for Rust on November 1 expecting the usual mix of terminals, databases and remote-desktop apps. Those were there. But of the 19 repositories on the list, eight were directly about AI: an inference engine, a distributed LLM network, an agent proxy, an agent runtime, a coding-agent terminal, a memory system for coding agents, OpenAI’s Codex CLI, and NVIDIA’s CUDA platform for Rust.A note on how this was made: I wrote it with help from Claude, Anthropic’s AI model, and checked each claim against the linked READMEs. The images were generated with ChatGPT.Frontier models are still trained in Python. The Rust projects on this list are about running them: on a laptop or a phone, in a proxy between your agents and the internet, or inside a terminal that has to stay up for a week.I read the READMEs of the trending AI projects and three established Rust AI frameworks that weren’t on the list but that most of these projects sit next to. Here is what each one does, what it claims, and where the caveats are. Star counts are from November 1, 2026.The layersI’ve ordered them by where they sit in the stack, from the GPU up.Image generated with ChatGPTAt the bottom is NVIDIA cuda-rust for writing GPU kernels. Above it, Candle, mistral.rs and uzu run models, and Mesh LLM spreads a model across several machines. Rig is the library you’d use to build an LLM feature into a Rust service. At the top, agentgateway, Nasiko, herdr and ai-memory manage the agents themselves.1. NVIDIA cuda-rust: CUDA kernels written in Rust3,932 stars, +134 this week. NVIDIA has published a repo it describes as “NVIDIA’s CUDA platform for Rust,” with host-side crates for the driver and device-side tooling for writing kernels. Of everything here, it’s the project I expect to matter most in two years.On the host side, cuda-bindings wraps the raw driver API, cuda-core handles contexts, streams, memory and launches, and cuda-async wraps GPU work in futures, streams and graphs.For kernels there are two programming models. cuda-oxide is classic SIMT CUDA: you manage thread and block indices and shared memory yourself, and Rust compiles ahead of time to PTX (it pins stable Rust 1.99.1). cutile-rs works on tiles with tensor-style operations and implicit indexing; it compiles Rust to Tile IR to cubin the first time a kernel launches and needs Rust 1.89 or newer. Kernels from both can share a stream and device buffers, so you could write most of a model in tiles and drop to SIMT for one hot kernel.NVIDIA’s README is blunt about the state of it: “CUDA Rust is an early-stage research project. Expect bugs, incomplete features, and API breakage.” I wouldn’t port production kernels to it yet. Still, Candle and mistral.rs have had to work around the lack of an official Rust path to CUDA, and now the hardware vendor is building one.2. Candle: Hugging Face’s minimal ML framework21.3k stars. It isn’t trending this week, but a lot of Rust inference code builds on it. Candle is a tensor library with a PyTorch-like feel and three backends: CPU (with MKL or Accelerate), CUDA (with multi-GPU via NCCL) and WebAssembly.use candle_core::{Device, Tensor};let device = Device::Cpu;let a = Tensor::randn(0f32, 1., (2, 3), &device)?;let b = Tensor::randn(0f32, 1., (3, 4), &device)?;let c = a.matmul(&b)?;The project says it wants to remove Python from production inference and make serverless deployment practical with small binaries. With the WASM backend you can run a small model inside a browser tab, no server involved.I’d use Candle when I want control over the model code. If you only need to serve a model, mistral.rs is less work.3. mistral.rs: a full inference serverAbout 7.8k stars, v0.9.5. mistral.rs is the closest thing Rust has to vLLM or llama.cpp’s server. It handles text, vision, video, audio, speech, image generation and embeddings.It can quantize Hugging Face models in place, and it loads GGUF (2 to 8 bit), GPTQ, AWQ, HQQ, FP8 and bitsandbytes weights. It runs on CUDA with FlashAttention V2/V3 or on Metal, across multiple GPUs or machines, with PagedAttention on CUDA and Apple Silicon. mistralrs serve exposes OpenAI-compatible /v1 endpoints and Anthropic-compatible Messages endpoints, plus Prometheus metrics and a web UI. There's also a built-in MCP client, so the model can call tools over process, HTTP or WebSocket transports.cargo add mistralrsI’d point out the Anthropic-compatible endpoint in particular: tools written against Claude’s API can talk to a local model without a translation layer.4. uzu: on-device inference for Apple hardware3,158 stars, +573 this week. uzu, from Mirai, is an inference engine meant to live inside an app. It targets Apple devices through Metal and unified memory (iOS, macOS, Mac Catalyst), with a CPU backend as fallback. The core is Rust, with bindings for Swift, Python and TypeScript. MIT licensed.engine = await Engine.create(engine_config)model = await engine.model("alibaba:qwen3.5:0.8b:mirai:mirai-m:4")It also ships an OpenAI-compatible HTTP server, an interactive CLI, tool calling and JSON-schema structured output. I wish more engines did one thing uzu does: computations are traceable, so when you add a new model you can check its outputs against the reference implementation.The README has a benchmarks section with the command to run them and no numbers. If speed is your reason for picking it, run them on your own device. It’s at version 0.6.15 with no tagged releases, so it’s young.5. Mesh LLM: pool GPUs across machines3,737 stars, +149 this week. Mesh LLM joins several machines into one OpenAI-compatible endpoint at localhost:9337/v1. If one node can hold a model, it serves locally. If not, dense models are split into layer stages across peers, and each peer downloads only the GGUF fragments for its own layers.The engine underneath is a patched llama.cpp runtime. Mesh adds peer discovery, routing and a web console. Peer traffic runs over QUIC with end-to-end encryption, relays can’t read packets, and you choose between a private mesh (invite tokens), a published one, or the public mesh.brew install Mesh-LLM/tap/mesh-llmmesh-llm setupmesh-llm serve --autoIt lists integrations with Claude Code, Goose, OpenCode and Pi, and has an experimental mixture-of-agents mode (model: "mesh"). The README calls the whole thing "experimental distributed-systems software." If your team has three idle gaming PCs and a 70B model that fits on none of them alone, it's worth an afternoon. I wouldn't send private prompts through the public mesh.6. Rig: the framework for LLM apps in RustAbout 9.0k stars, v0.46.0. Rig fills roughly the role LangChain or the Vercel AI SDK fills in other languages, with one interface over 20+ model providers and 10+ vector stores, including Qdrant, LanceDB, PostgreSQL, SQLite, MongoDB and Neo4j.use rig::prelude::*;use rig::providers::openai::{self, OpenAI};#[tokio::main]async fn main() -> Result { let model = OpenAI::from_env()?.completion(openai::GPT_6_1_SOL); let comedian = AgentBuilder::new(model) .preamble("You are a comedian here to entertain the user using humour and jokes.") .build(); let response = comedian.prompt("Entertain me!").await?; println!("{}", response.output()); Ok(())}Rig is pre-1.0 and says so. Pin the version and read the changelog before you upgrade.7. agentgateway: a proxy between agents and everything else5,844 stars, +296 this week. agentgateway is an Apache-2.0 Linux Foundation project that sits in front of agents roughly the way Envoy sits in front of microservices. For MCP it federates tools from many servers behind one endpoint, with OAuth and OpenAPI-to-MCP conversion. For A2A it handles agent discovery and task handoff. For LLM calls it gives you one OpenAI-compatible endpoint with load balancing, failover, budgets and spend limits.Around that it adds JWT, API key and OAuth auth, RBAC through a CEL policy engine, rate limiting, guardrails (regex, moderation services, webhooks) and OpenTelemetry traces. It can also route to self-hosted models by GPU load, KV cache state, LoRA adapter and queue depth.Once you have more than a couple of agents calling tools on real systems, you want something that enforces which agent may call which tool, and most setups I’ve seen don’t have it. Part 1 of this series did the same thing at the type level.8. Nasiko: a runtime that hides API keys from agents11,211 stars, +1,455 this week. Nasiko does two things. It detects coding agents on your machine (Claude Code, Codex, OpenCode, Cursor CLI), records their sessions and cost in one place, and can reroute their LLM calls. And it deploys your own agents, written in any language, as long as they speak A2A v1.0.Agents never hold real provider keys, which I like. They get gateway tokens, and Nasiko’s router holds the actual keys. Agent-to-agent calls are proxied through the server, an MCP gateway exposes only tools the agent has been granted, and Redis-backed limits cap call depth, fan-out, token budget and cycles. Agents run in Docker containers. The README doesn’t describe filesystem or process isolation beyond that, so don’t treat it as a sandbox.9. herdr: a terminal that agents live in47,252 stars, +1,524 this week. herdr is tmux rebuilt for coding agents. Sessions run in a background server, so closing your laptop or dropping SSH doesn’t kill the agent. Each pane shows whether its agent is working, blocked or idle, which is what I want to know at 11pm with four agents running.Agents can use herdr’s CLI and socket API to spawn panes, prompt each other and wait until another agent is blocked. It runs Claude Code, Codex, Cursor, OpenCode and others unmodified.brew install herdrherdrThe README is clear about one limit: after a restart, herdr restores layout and can resume supported agent sessions, but the original processes are gone.10. ai-memory: memory that moves between agents14,789 stars, +1,509 this week. ai-memory lets you stop a task in Claude Code and pick it up in Codex or Gemini CLI without re-explaining the project. It claims support for more than twenty agents through MCP and lifecycle hooks.I’d trust it because of how it stores things. The source of truth is a git-versioned folder of plain markdown, and SQLite holds search indexes that can be rebuilt from that markdown at any time. You can read, diff and revert your agents’ memory. Handoffs have an owner and can be claimed once, so two agents don’t both pick up the same task. It runs without an LLM key; LLM-written summaries and vector search are optional.Also on the listOpenAI’s Codex CLI (132,687 stars) is written in Rust and gained 1,835 stars this week. Handy (36,198 stars) is an offline speech-to-text app. Codync (1,486 stars) lets you message coding agents from chat apps.Why Rust keeps showing up hereImage generated with ChatGPTModels get trained in Python, and more and more of the code that serves them and supervises agents is Rust. You get one static binary with no virtualenv to ship, memory use without garbage-collector pauses, and a compiler that catches bugs a long-running proxy would otherwise hit at 3am.Most of these projects are pre-1.0, and several call themselves experimental in their own README. None of the trending inference engines published benchmark numbers I could check. And stars tell you people are looking, which isn’t the same as people running it in production.If I were choosing today, I’d serve an open model on my own GPU with mistral.rs and build LLM features into a Rust service with Rig. For a model inside a Mac or iOS app I’d try uzu and benchmark it on the device first. Anyone running several agents against real tools should put agentgateway in front of them. And if you write GPU kernels, keep an eye on NVIDIA cuda-rust without depending on it yet.This is part of my Rust for AI series. Part 1 covered making forbidden agent tools unrepresentable in Rust’s type system, and part 2 built an MCP server in Rust for Claude Code. Part 3 puts a Rust embedding service and a Python one side by side to measure what the Rust version saves. Follow if you want that one.SourcesGitHub trending: Rust, weeklyNVIDIA/cuda-rusthuggingface/candleEricLBuehler/mistral.rstrymirai/uzuMesh-LLM/mesh-llm0xPlaygrounds/rigagentgateway/agentgatewayNasiko-Labs/nasikoherdrdev/herdrakitaonrails/ai-memoryRust Is Becoming the Layer Generative AI Runs On: 10 Repos Trending This Week was originally published in Towards AI on Medium, where people are continuing the conversation by highlighting and responding to this story.