Topic

Rust

Track Rust news, ecosystem updates, performance discussions, library releases, async debates, systems programming posts, and production lessons from developer communities.

What this topic tracks

  • Language, compiler, and RFC updates
  • Async Rust and backend service patterns
  • Crate releases and ecosystem tooling
  • Systems programming and performance
  • WebAssembly, embedded, and production lessons

Rust · 421 stories

Recent stories

Each story's summary, with the places it was discussed.

Summaries are written by AI from the linked sources. Open the source for full context.

20 stories

Implementing 128-bit atomics in Cranelift

trifectatech.org · 2 Dec

Low-Level Programming · Programming Languages · Rust

Cranelift gained 128-bit atomic support for its AArch64 and s390x backends, enabling rustc_codegen_cranelift to compile Rust’s standard library without patches.

The AArch64 implementation uses exclusive-load/store retry loops (`ldaxp`, `stxp`/`stlxp`, and `cbnz`) to provide WebAssembly’s required sequential consistency for load, store, CAS, and RMW operations. The work required new ISLE lowerings, register-allocation constraints, instruction encodings, tests, and debugging. Support shipped in Cranelift 0.138.

Mutex poisoning is not for everyone

bertptrs.nl · 16 Nov

Performance · Programming Languages · Rust

Rust’s default mutex poisoning should be replaced or complemented by non-poisoning mutexes.

Poisoning adds state, branching, code size, and performance costs to every mutex, while most critical sections do not require it; it also encourages routine `unwrap()` usage and inconsistently protects mutable invariants. The author supports stabilizing `std::sync::nonpoison::Mutex`, making poisoning opt-in through wrappers, and rejects making poisoned `std::sync::Mutex` panic by default.

11 nanoseconds per word: Ridiculously Over-Optimizing Anagrams

wiredream.com · 5 Nov

Algorithms · Performance · Rust

A Rust anagram index was optimized from 31 ms to 1.96 ms for 178,690 Scrabble dictionary words, reducing cost from 173 to 10.9 ns per word, a 15.8× speedup.

The progression replaced sorted-string keys and allocations with flat arrays, packed u128 letter counts, FxHashMap, corpus-tuned 64-bit Gödel numbering using collision-free prime products, packed word representations, dual accumulators, and a branchless auto-vectorized loop. The index will support a complete word-ladder solver.

Cpp2Rust: Automatic Translation of C++ to Safe Rust

github.com · 10 Jul

C++ · Programming Languages · Rust

Cpp2Rust is a syntax-driven tool that automatically translates C++ code into safe Rust using Clang's AST.

By utilizing the libcc2rs runtime library to handle pointers, it ensures safety through reference counting while offering an optional unsafe mode. The tool integrates with CMake, supports complex projects via compile_commands.json, and produces clean Rust code through rustfmt.

Debloat your async Rust

tweedegolf.nl · 13 Apr

Performance · Rust · Software Architecture

Async Rust simplifies concurrent programming but can lead to significant resource overhead known as 'async bloat.'

This occurs when complex state machines are generated unnecessarily. Developers can minimize this by avoiding unnecessary async functions, using manual future implementations for pass-through logic, restructuring code to consolidate await points, and passing references instead of moving large variables.

One page of async Rust

dotat.at · 16 Feb

Programming Languages · Rust · Software Architecture

The author explores Rust's lower-level async mechanics by building a minimal virtual-time simulation.

By bypassing high-level crates, they demonstrate how to implement a custom Task wrapper, use Pin for self-referential futures, and leverage RawWaker to communicate commands like fake sleep to an executor loop, resulting in a lightweight, boilerplate-free state machine.

ArtCraft Apps – open-source Adobe compatible suite written in Rust

getartcraft.com · 4 Oct

Rust

ArtCraft is building seven free, open-source creative apps in pure Rust for image editing, vector illustration, video, photography, PDFs, motion graphics, and page layout.

The native macOS, Windows, and Linux apps run locally without Electron or web views, use familiar professional workflows, and expose CLI, JSON control, and MCP interfaces for automation and AI agents. Six apps also compile to WebAssembly for browser use; all source is available on GitHub under permissive licenses.

Rust: When Empty Isn't Bottom

ettolrach.com · 8 Sept

Programming Languages · Rust · Scala

Rust’s stabilized never type (!) is an empty type, not a bottom type: it has no values and supports coercion only when !

is the expression’s direct type. Languages with subtyping, such as Scala, treat the bottom type as a subtype of every type, enabling broader coercions inside generic and function types. Rust remains expressive but sometimes requires explicit pattern matching.

cloudflare/quiche

github.com · 21 Sept

C · C++ · Rust

Cloudflare’s quiche is an open-source Rust implementation of QUIC and HTTP/3, offering low-level packet, connection, timer, pacing, and stream APIs.

Applications provide I/O and event loops. It includes an HTTP/3 module, C/C++ FFI, command-line tools, and build support for Linux, Android, iOS, and Docker, with integrations across Cloudflare, Android, and curl.

Unattended reboots with encrypted disks

jmmv.dev · 7 Nov

Cybersecurity · Encryption · Rust

ZKeys is a free managed service and open-source client that enables unattended reboots for encrypted home servers while automatically locking keys if a machine stops sending keepalives, such as after theft.

It stores half the passphrase remotely, encrypts keys at rest, and keeps the other half locally, so server compromise alone cannot reconstruct keys. The Rust client integrates with FreeBSD and Fedora; users must maintain an independent full-key backup.

dimonomid/montray

github.com · 6 Oct

Linux · Monitoring · Rust

Montray monitors systemd services and arbitrary command-line health checks on local or remote machines, displaying incidents through a desktop tray icon, notifications, and GUI.

Its Go-based montray-server exposes read-only WebSocket status data, while the Rust/Slint montray-ui aggregates multiple servers, supports snoozing, and uses SSH tunnels, TLS, or bearer tokens for remote access. Configurable warning and error states drive gray, green, yellow, red, or magenta indicators.

designing a query system

bal-e.org · 3 Aug

Performance · Rust · Software Architecture

The author discusses the design of a sophisticated, pull-based query system for Krabby, a Rust compiler project.

Key features include concurrency, asynchrony, task batching, and integration with Cargo. The architecture aims to improve compilation latency and memory efficiency compared to traditional approaches, using advanced memoization, incremental cache management, and robust cycle detection to optimize Rust development workflows.

SpaceWASM: NASA/JPL's Wasm interpreter for spacecraft sequencing

github.com · 8 Jul

Performance · Rust · Science

SpaceWASM is a deterministic WebAssembly 1.0 interpreter designed for spacecraft flight software.

It features streaming decoding, a custom memory allocation model for resource-constrained environments, and converts bytecode into an intermediate representation. It ensures safety and performance through strict constraints and specialized data structures, meeting rigorous flight software standards for deterministic, memory-efficient operations.

Work In Progress Rust

blog.dureuill.net · 5 Jul

Productivity · Programming Languages · Rust

This article discusses techniques for managing 'work-in-progress' code in Rust.

By using warning-based strategies rather than blocking errors, developers can stay focused on the 'happy path' during prototyping. The author introduces the 'wip' crate, which provides macros like wip!, unwrap_wip, and fixme! to reliably generate compiler warnings for unfinished code until it is ready for production.

Guideline: Rust Style

epage.github.io · 23 Mar

Programming Languages · Rust · Software Architecture

This guide provides best practices for structuring Rust projects, files, and functions.

It emphasizes writing code as technical communication for reviewers and future maintainers, prioritizing readability through consistent layout, clear abstractions, and logical grouping. Key recommendations include using specific module naming conventions, organizing imports and items by visibility, and separating business logic from side effects.

Cryptographic Issues in Matrix’s Rust Library Vodozemac

soatok.blog · 17 Feb

Cybersecurity · Encryption · Rust

Security researcher disclosure reveals critical cryptographic vulnerabilities in Matrix's Vodozemac Rust library.

Issues include high-severity Diffie-Hellman implementation flaws allowing zero-key shared secrets, and downgrade attacks between protocol versions. The report criticizes Matrix for failing to address previous side-channel issues in the deprecated Olm library and ignoring prior audit recommendations regarding cryptographic integrity.

Adventures in Guix Packaging

nemin.hu · 7 Feb

Linux · Rust · Open Source

The article chronicles a developer's week-long journey into packaging WezTerm for the Guix System, a declarative and functional Linux distribution.

Moving beyond a failed initial attempt with Gamescope, the author details the iterative process of learning Scheme, Guile, and the specificities of the Guix build environment. Key technical hurdles explored include managing Rust dependencies without network access, patching Cargo.toml to handle git-sourced crates, and solving runtime shared library issues for libEGL and Vulkan using patchelf and RUSTFLAGS. The author also highlights the 'nerd-sniped' motivation behind the project and emphasizes the supportive nature of the Guix community's code review process. Ultimately, the narrative demonstrates that while packaging for functional systems involves a steep learning curve, the collaborative efforts of experienced maintainers help ensure high-quality software contributions even from newcomers.

Ariel OS is a library operating system for secure, memory-safe, low-power Internet of Things, written in Rust

github.com · 28 Jan

C · Rust · Operating Systems

Ariel OS is an innovative operating system designed specifically for the secure, memory-safe, and low-power Internet of Things ecosystem.

Built from the ground up using Rust, it targets 32-bit microcontroller architectures including Cortex-M, RISC-V, and Xtensa. By integrating established crates like Embassy and esp-hal, Ariel OS bridge the gap between individual building blocks and a fully integrated development experience similar to RIOT or Zephyr. It introduces key features such as a preemptive multicore scheduler, portable peripheral APIs, and the laze meta-build system to reduce boilerplate. This 'batteries-included' framework empowers developers to create portable, high-performance embedded applications while maintaining rigorous security standards and memory safety through the Rust ecosystem.

An old-new take on argument parsing in Rust

jmmv.dev · 31 Jul

CLI · Rust · Software Architecture

The author introduces 'getoptsargs', a small, Unix-style framework for Rust that extends the classic 'getopts' crate.

It provides an end-to-end structure for consistent command-line application development—handling metadata, options, and positional arguments—to ensure tools feel native to Unix environments without the overhead or design choices of more popular alternatives like 'clap'.

We're building Postgres in Rust. Using the LLVM of databases

turso.tech · 16 Jul

Database · PostgreSQL · Rust

Turso, a reliable Rust-based database engine, is evolving into the 'LLVM of databases.'

By decoupling the core engine from SQL frontends, it now aims to support Postgres alongside SQLite. This project leverages Turso's existing architecture to implement a modern, high-performance, and embeddable version of Postgres, welcoming community contributions to build the future of database technology.

Where it came fromLobstersHacker NewsGitHubCreate a Rust digest for ecosystem updates, systems programming posts, and production lessons on your schedule.Build your digest