Best of RustApril 2025

  1. 1
    Article
    Avatar of hnHacker News·50w

    Migrating away from Rust.

    The development of Architect of Ruin initially began in Rust with the Bevy game engine due to personal preferences and the positive community around Bevy. However, challenges such as collaboration difficulties, abstraction issues, rapid iteration needs, migration pain, and modding limitations prompted a switch to Unity and C#. The team conducted an experiment evaluating core features implementation, leading to a full port decision. The switch resulted in faster development, better collaboration, and improved maintainability.

  2. 2
    Article
    Avatar of logrocketLogRocket·1y

    Building progressive web apps using Rust

    Learn how to build a progressive web app (PWA) using Rust, WebAssembly (Wasm), SurrealDB, and Nostr. This comprehensive guide covers the implementation of storage, networking, and security layers within a rich PWA, highlighting the benefits of using Rust and Wasm for performance, safety, and robustness. The tutorial walks through creating a simple app that supports offline functionality, local encryption, and message networking. The setup includes initial project configuration, database connections, key management, message encryption and decryption, Nostr networking, and a vanilla JavaScript frontend for interaction.

  3. 3
    Article
    Avatar of communityCommunity Picks·1y

    Why Rust is the most admired language among developers

    Rust is highly admired by developers due to its focus on safety, performance, and productivity. Rust was created by Graydon Hoare in 2006 and gained popularity for its memory management and safety features. Initially sponsored by Mozilla and now widely adopted, Rust is used in systems programming, operating systems, web development, embedded systems, and blockchain technologies. It tops developer surveys as the most desired language, supported by a vibrant community and extensive resources.

  4. 4
    Article
    Avatar of lobstersLobsters·51w

    pgdogdev/pgdog: Horizontal scaling for PostgreSQL with automatic sharding.

    PgDog is a fast, secure transaction pooler and logical replication manager for PostgreSQL that supports automatic sharding. Written in Rust, it can manage hundreds of databases and thousands of connections, offering features like cross-shard queries, health checks, and failover. It includes tools for Docker and Helm deployment, PostgreSQL client compatibility, and detailed configuration files. PgDog is open source and licensed under AGPL v3.

  5. 5
    Article
    Avatar of hnHacker News·1y

    ferronweb/ferron: A fast, memory-safe web server written in Rust.

    Ferron is a high-performance, memory-safe web server built with Rust. It uses Rust’s async capabilities for speed, focuses on security and robust concurrency, and features a modular architecture for customization. Currently, Ferron is under development with installation instructions to be provided upon the initial release. Users can clone the repository and build the project using Cargo.

  6. 6
    Article
    Avatar of thedevcraftThe Dev Craft·50w

    Open Source Focus App for macOS

    An open-source app for macOS, built with Tauri 2.0 and React, offers enhancements over Raycast Focus, including screen time tracking and Spotify integration. The app features Rust crates for activity monitoring, custom shortcuts, a notification system, and integrations with Google Auth and Supabase.

  7. 7
    Article
    Avatar of communityCommunity Picks·1y

    moonrepo/proto: A pluggable multi-language version manager.

    Proto is a high-performance, pluggable version manager for multiple programming languages built with Rust. It provides a unified CLI for managing versions across various languages and offers cross-platform support, checksum verification, and contextual version detection. Its pluggable architecture via WASM enables custom integrations, making it a versatile tool for developers.

  8. 8
    Article
    Avatar of rpythonReal Python·50w

    Managing Python Projects With uv: An All-in-One Solution – Real Python

    Learn how to manage your Python projects using uv, a fast package and project manager written in Rust. uv simplifies workflows by allowing fast dependency installation, virtual environment management, Python version control, and project publication. This tutorial guides you through installing uv, setting up projects, handling dependencies, and publishing distributions to repositories.

  9. 9
    Article
    Avatar of hnHacker News·1y

    Apps lighter than a React button

    Nue is a web framework that leverages modern web standards—HTML, CSS, and JavaScript—to deliver exceptionally lightweight applications. It uses a Rust computation engine and event sourcing to handle large scales efficiently, outperforming traditional JavaScript setups. Nue emphasizes a model-first approach with modular design, static typing, and minimal dependencies, aimed at various engineering disciplines including system development, design, and UX.

  10. 10
    Video
    Avatar of t3dotggTheo - t3․gg·51w

    JavaScript is fast enough (don't rewrite your code)

    The discussion focuses on whether rewriting JavaScript tools in faster languages like Rust or Go is beneficial. It argues that while new languages may offer performance improvements, optimizing JavaScript itself and leveraging its ecosystem might be more practical. The piece also highlights how JavaScript's widespread use lowers the barrier for contributions, making it a more versatile and accessible language for developers.

  11. 11
    Article
    Avatar of medium_jsMedium·1y

    Rust is easy? Go is… hard?

    The author compares Rust and Go based on personal experience, highlighting areas like enums, traits, and error handling. Rust's advanced features such as enums, traits, and versatile error handling make it easier to use for complex tasks once the initial learning curve is overcome. Go, while simple at the start, requires more workarounds and leads to more repetitive code in the long run.

  12. 12
    Article
    Avatar of omgubomg! ubuntu!·51w

    COSMIC Desktop Alpha 7 Brings More New Features

    System76 has announced the 7th alpha release of the Rust-based COSMIC desktop environment. The update introduces new features such as workspace reordering and pinning, additional accessibility aids like color filters and a mono sound option, support for global keyboard shortcuts for X11 apps, and enhanced X11 scaling controls. The release also includes tooltip additions, system shortcuts, and more customizations for various COSMIC apps.

  13. 13
    Article
    Avatar of lobstersLobsters·52w

    Two Years of Rust

    Reflections on two years of professional experience with Rust, highlighting its strengths in performance, tooling, type safety, error handling, and productivity. Discusses both positive aspects like the borrow checker, async handling, and confidence in code, and negatives such as the module system and build performance. The author shares insights into hiring Rust developers and the emotional impact of working with the language.

  14. 14
    Video
    Avatar of gamefromscratchGamefromscratch·1y

    Rust Game Engines in 2025

    This post provides a comprehensive overview of various game engines available for the Rust programming language. It highlights popular choices such as Bevy, Fireox, and Piston, and also covers lesser-known options like Blue Engine and GG. The engines vary in their focus and capabilities, ranging from 2D pixel art to general-purpose, modular, and highly extendable systems. Some engines are inspired by other well-known frameworks, offering Rust-based alternatives for game development. Additionally, the post mentions specific bindings for libraries like SDL and SFML, which assist in creating multimedia applications using Rust.

  15. 15
    Article
    Avatar of dockyardDockYard·52w

    Zero-Cost Abstractions in Rust: Power Without the Price

    Rust allows developers to write high-level, clean code without sacrificing performance thanks to zero-cost abstractions. This feature enables tools like loops, functions, and data transformations to run as efficiently as low-level code, providing both speed and safety. Key examples include iterators, closures, and smart pointers. These abstractions are optimized at compile time, enabling Rust to deliver exceptional performance in various applications such as REST APIs, data processing, and WebSocket handlers.

  16. 16
    Article
    Avatar of omgubomg! ubuntu!·1y

    Rnote 0.12 Released with Improved Linux Note-Taking Features

    Rnote 0.12, an open-source app for taking handwritten notes, sketching ideas, and annotating documents, introduces new features like a laser highlighting tool, improved tab management, multi-click selection, and encrypted PDF import. Built using GTK4 and Rust, Rnote supports stylus input, various document layouts, and has a new mode for e-ink displays. The update also includes multiple bug fixes and user experience improvements.

  17. 17
    Article
    Avatar of lobstersLobsters·1y

    A Year of Rust in ClickHouse

    ClickHouse has integrated Rust into its C++ codebase to leverage Rust's strengths while maintaining its existing infrastructure. The process involved initial Rust component testing, integration challenges, and resolving incompatibilities. Key Rust libraries like BLAKE3 and PRQL were added, leading to significant improvements. Despite some issues, the integration of Rust brought enhanced confidence and practical benefits.

  18. 18
    Article
    Avatar of hnHacker News·1y

    Rust-GPU/Rust-CUDA: Ecosystem of libraries and tools for writing and executing fast GPU code fully in Rust.

    The Rust CUDA Project aims to make Rust a tier-1 language for high-performance GPU computing using the CUDA toolkit. This effort includes developing tools to compile Rust to PTX code and create libraries that facilitate the use of existing CUDA libraries in Rust. The project addresses historical issues with Rust's compatibility with CUDA and seeks to advance Rust's role in GPU computing. Contributions are welcome as the project is actively being developed and rebooted.

  19. 19
    Article
    Avatar of lobstersLobsters·1y

    Fast(er) binary search in Rust

    Binary search is a fast algorithm but suffers from predictability issues on modern CPUs. This post explores the Eytzinger layout to improve memory access predictability and introduces a branchless version of the Eytzinger binary search. It also discusses the benefits of using software memory prefetching to further enhance performance.

  20. 20
    Article
    Avatar of lobstersLobsters·1y

    BPF From Scratch In Rust

    Learn how to write a BPF program in Rust from scratch without using macros, frameworks, or hidden helpers. The post explains how to set up the Rust build toolchain, write a minimal BPF program that hooks into a tracepoint, and use the 'yeet' CLI and its daemon 'yeetd' to load and manage the BPF program. A step-by-step guide is provided to create, build, and run the BPF program, ensuring it integrates seamlessly with the Linux kernel and prints live output to the trace pipe.

  21. 21
    Article
    Avatar of phoronixPhoronix·51w

    System76 Releases COSMIC Alpha 7 Desktop - Last Step Before Beta

    System76 has released COSMIC Alpha 7, the final alpha release for their Rust-written desktop environment tailored for the Pop!_OS Linux distribution. This milestone marks the last phase before the beta release.

  22. 22
    Article
    Avatar of lobstersLobsters·1y

    Fjall 2.8

    Fjall 2.8 is a Rust-based LSM key-value storage engine with enhanced bulk loading and a new unified cache API. The bulk loading API allows faster insertion by writing data directly as sorted disk segments, making it suitable for tasks like schema migration and data restoration. The unified cache API simplifies configuration by merging block and blob caches, leading to more efficient memory usage. Additionally, a change to std::slice::partition_point improves the performance of binary searches in LSM-trees.

  23. 23
    Article
    Avatar of fasterthanlifasterthanli.me·51w

    Open sourcing the home CMS

    Amos Wenger discusses open sourcing his Home CMS software, detailing its unique features and repositories related to the project. He highlights the use of tree-sitter grammars, drawio conversion tools, and the beardist wrapper around cargo. The Home CMS integrates Vite for bundling and has server components for asset derivation and template rendering. Wenger expresses excitement for future enhancements, including efficient Docker image building, and encourages community contributions.

  24. 24
    Article
    Avatar of ferroussystemsFerrous Systems·1y

    defmt is now 1.0

    The defmt logging framework for embedded systems has reached version 1.0. This release ensures full compatibility with previous versions. Users can upgrade from defmt 0.3 to 1.0 by running 'cargo update'. The semver-trick has been used to make this transition smooth. Feedback on the new release is welcome via the issue tracker.

  25. 25
    Article
    Avatar of newstackThe New Stack·51w

    How To Deploy Vaultwarden, a Server-Based Alternative to Bitwarden

    Vaultwarden is a server-based alternative to Bitwarden, developed in Rust, ideal for self-hosting. It can be quickly deployed using Docker or Podman and offers key features such as syncing across devices, end-to-end encryption, a password generator, secure sharing, and mobile apps. The post guides through installing Docker and deploying Vaultwarden on Ubuntu 25.04.