thehardwarestore.ai

where AI agents shop for the right tools

── 99275 repos indexed ── | filtered by tag: rust
Evokoa/pgGraph ★ 1054 85 APPLICATION

pgGraph is a PostgreSQL extension written in Rust (via pgrx) that adds high-performance graph query capabilities directly into PostgreSQL. It allows users to model graphs by registering existing relational tables as nodes and edges, building a compressed sparse row (CSR) adjacency index for sub-millisecond traversals, shortest paths, and connected components. The extension exposes SQL functions (`graph.traverse`, `graph.shortest_path`, `graph.search`, `graph.gql`, `graph.cypher`) and supports both openCypher and a subset of GQL for querying property graphs. It integrates deeply with PostgreSQL security (row-level security, multi-tenancy, ACLs), provides resource governance (memory, disk, work unit budgets), and includes a durable projection layer with atomic manifests, delta segments, compaction, and crash recovery. The codebase is structured as a pgrx extension with a Rust core, SQL bootstrap scripts, background workers for build/maintenance jobs, and an extensive test suite including fuzz targets, property-based tests, and heavy integration tests for concurrency, crash recovery, and performance gates.

RATING: 9.8/10 MAINT: active DRIFT: low
▸ 3 reusable components found
denoland/deno ★ 108555 6390 APPLICATION

This is the Deno runtime repository, a production-grade JavaScript, TypeScript, and WebAssembly runtime built in Rust with a modular architecture. The system comprises a CLI binary (`cli/`), a core runtime library (`libs/core/`), dozens of Web API and Node.js compatibility extensions (`ext/`), a resolver and npm package manager (`libs/resolver/`, `libs/npm/`), and comprehensive testing infrastructure (`tests/`). The architecture is organized as a Cargo workspace with crates for the CLI, runtime, extensions, and shared libraries. Key entry points include `cli/main.rs` for the `deno` command, `cli/rt/main.rs` for standalone compiled binaries, and `runtime/lib.rs` for embedding. External dependencies include V8, tokio, and various Rust crates; the runtime integrates with npm and JSR registries for package resolution, which is a central data flow alongside module loading and JavaScript execution. The codebase showcases high craftsmanship with declarative op definitions via `#[op2]`, efficient V8 serialization via `serde_v8`, and a pluggable extension system. It has tens of thousands of tests covering unit, integration, spec, and node compatibility scenarios. Despite its enormous size, the code is generally well-structured and actively maintained.

RATING: 9.7/10 MAINT: active DRIFT: low
▸ 5 reusable components found
zed-industries/zed ★ 91197 10872 APPLICATION

Zed is a high-performance, multiplayer code editor built entirely in Rust. It features a custom GPU-accelerated UI framework (GPUI) that provides native rendering on macOS, Linux, Windows, and Web. The editor includes full LSP integration, real-time collaboration via a dedicated server (collab), an AI assistant with support for multiple LLM providers (Anthropic, OpenAI, Google, Ollama, etc.), a debugger with DAP support, a terminal, and an extension system using WASM. The architecture is a hybrid: a desktop application with a separate backend server for collaboration features. The codebase is organized into over 300 crates, covering everything from low-level platform abstractions (gpui_macos, gpui_linux, gpui_windows, gpui_web) to high-level editor features (editor, project, language, vim). The AI subsystem includes an agent crate with tool-use capabilities, edit prediction, and an evaluation framework for benchmarking model performance. Key entry points include the main zed binary (crates/zed), the collaboration server (crates/collab), the CLI tool (crates/cli), and the extension host (crates/extension_host). Data flows involve user input through the GPUI event system, text editing through rope and buffer structures, LSP communication for language intelligence, and RPC for collaboration. The AI agent uses a tool-based architecture with sandboxed execution for safety. The codebase demonstrates exceptional craftsmanship with many reusable components: a custom GUI framework with platform backends, a sophisticated settings system with migrations, a fuzzy matching engine, an HTML-to-Markdown converter, and various data structures (VecMap, ArcCow, RootPathTrie). It is actively maintained with frequent commits and a large community.

RATING: 9.7/10 MAINT: active DRIFT: low
▸ 10 reusable components found
CyberTimon/RapidRAW ★ 10523 611 APPLICATION

RapidRAW is a production-quality, non-destructive RAW image editor built as a Tauri v2 desktop application with a Rust backend and React/TypeScript frontend. In production, it provides a complete photo management and editing workflow: importing, organizing, developing RAW files (via rawler and Apple Core Image RAW9 on macOS), applying a GPU-accelerated adjustment pipeline (wgpu compute shaders for exposure, curves, color grading, sharpening, LUTs, lens corrections, etc.), AI-assisted masking (SAM, U2-Net, Depth Anything), panorama stitching, HDR merging, focus stacking, denoising (BM3D, ONNX AI), and export to common formats. The architecture is a monolith with a single Rust crate exposing ~100 Tauri commands and a React SPA with Zustand stores for state management. Key entry points include the library view for browsing and the editor view with a canvas, side panels for adjustments/masks/tools, and modal dialogs for batch operations. External dependencies include rawler (RAW decoding), ort (ONNX Runtime for AI inference), gphoto2 (camera tethering), wgpu (GPU compute), and various npm packages for UI and i18n. The codebase demonstrates high craftsmanship with clean separation of concerns, efficient caching strategies, and advanced image processing algorithms. It is primarily an application, though it incorporates significant data engineering in its AI model pipeline and image processing kernels.

RATING: 9.7/10 MAINT: active DRIFT: low
▸ 3 reusable components found
esp-rs/esp-hal ★ 2153 520 APPLICATION

This is a bare-metal (no_std) hardware abstraction layer (HAL) for Espressif ESP32 microcontrollers, supporting RISC-V and Xtensa cores. It provides low-level drivers for GPIO, SPI, I2C, UART, ADC, DAC, PWM, timer, USB, Ethernet, Wi-Fi, BLE, IEEE 802.15.4, and many other peripherals across a dozen+ chip families (ESP32, ESP32-C2/C3/C5/C6/C61, ESP32-H2/H4, ESP32-P4, ESP32-S2/S3/S31). The repository is a monorepo containing multiple independently versioned crates: esp-hal (core HAL), esp-radio (wireless radio stacks), esp-alloc (heap allocator), esp-storage (flash storage), esp-backtrace, esp-println, esp-sync (synchronization primitives), esp-rom-sys (ROM function bindings), esp-rtos (lightweight RTOS with async/embassy integration), esp-lp-hal (low-power core HAL), esp-config (build-time configuration), esp-metadata (chip property code generation), xtask (build/release tooling), and bootloader/OTA support. The architecture is built on extensive use of compile-time chip selection via macros (cfg_select!, for_each_*), versioned low-level driver modules per peripheral, and type-erased patterns for unified APIs across chip variants. Async support is first-class via embassy executor integration. The codebase demonstrates high engineering quality with clear abstractions, comprehensive hardware-in-the-loop testing (hil-test, hil-test-radio), and mature CI/CD workflows.

RATING: 9.7/10 MAINT: active DRIFT: low
▸ 4 reusable components found
databendlabs/openraft ★ 2045 242 APPLICATION

OpenRaft (databendlabs/openraft) is a production-grade Raft consensus library written in Rust, not a standalone application. It provides the replicated-log, leader-election, membership-change, and snapshot-streaming machinery that database teams embed in their own systems; known consumers include Databend, CnosDB, Walrus, RocketMQ-rust, and Hiqlite. The repository is structured as a workspace: the core `openraft` crate, a `legacy` crate for the deprecated v1 network API, runtime adapter crates (`rt`, `rt-tokio`, `rt-monoio`, `rt-compio`), example KV-store applications (HTTP/gRPC/RocksDB/WAL/OpenDAL backends), a Jepsen fault-injection suite in Clojure, and a deterministic-simulation test harness (`tests-turmoil`) that checks formal Raft invariants (election safety, log matching, leader completeness, state machine safety, monotonicity) against seeded network-failure scenarios. The codebase is at version 0.10.0-alpha.34: the public API is still churning, but the architecture is mature and unusually well tested.

RATING: 9.7/10 MAINT: active DRIFT: low
▸ 5 reusable components found
toeverything/AFFiNE ★ 73192 5324 APPLICATION

AFFiNE is a cross-platform, block-based knowledge management application that combines notes, whiteboards, and databases in a local-first, real-time collaborative environment. Built on the BlockSuite editor framework, it features a modular architecture with extensible components, AI-powered capabilities (Copilot), and support for embedding external content. The application consists of a web client, desktop client (Electron), and mobile clients (iOS/Android), backed by a Node.js/NestJS server with Prisma ORM and Rust performance modules. Data is synchronized via Yjs CRDTs with a custom storage layer (nbstore) for offline-first capabilities.

RATING: 9.6/10 MAINT: active DRIFT: low
▸ 4 reusable components found
sharkdp/bat ★ 60659 3201 APPLICATION

bat is a command-line tool that serves as a drop-in replacement for `cat(1)` with syntax highlighting, Git integration, and automatic paging. Written in Rust, it reads files or stdin, detects the language via file extension, shebang, or explicit `--language` flag, applies a syntax theme (Sublime Text `.sublime-syntax` definitions), and renders the output with optional decorations (line numbers, grid borders, git change markers, headers). It supports paging via `less` or a built-in pager, wrapping modes, line range filtering, diff mode, ANSI sanitization, and configurable themes. The architecture is a library (`bat` crate) with a binary entry point (`src/bin/bat/main.rs`). The library exposes a `PrettyPrinter` builder API for embedding in other Rust programs, while the binary handles CLI argument parsing (clap), config file loading, environment variables, and asset caching. External dependencies include `syntect` for syntax highlighting, `gix` for Git diff computation, `clap` for argument parsing, and `minus` for built-in paging. The project maintains a large corpus of syntax definitions and test fixtures for regression testing across hundreds of languages.

RATING: 9.6/10 MAINT: active DRIFT: low
▸ 3 reusable components found
starship/starship ★ 60172 2696 APPLICATION

Starship is a stateless, cross-shell prompt customization CLI written in Rust. In production it is invoked by shell init scripts (bash, zsh, fish, PowerShell, etc.) via `starship prompt`, and it emits a fully styled ANSI prompt string. The binary is driven through clap subcommands: `prompt`, `init`, `module`, `timings`, `explain`, `config`, `toggle`, and `statusline claude-code`. The core rendering pipeline constructs a `Context` from environment variables, current directory, shell metadata, and CLI flags, then dispatches to roughly 100 feature modules located in `src/modules/`. Each module detects a specific piece of state—language version, git status, cloud context, command duration, Kubernetes context, and so on—and returns styled prompt segments that are assembled by `src/print.rs`. The architecture is a configuration-driven module registry with a uniform contract: every module loads its `XxxConfig` struct from a TOML file, uses shared filesystem scanning helpers from `Context`, executes external tools through a mockable command executor, and formats output with the custom `StringFormatter` engine. Data flows are entirely local and ephemeral: environment variables, directory contents, VCS metadata via gitoxide or git/hg/jj executables, parsed project metadata files (TOML, JSON, YAML, XML, INI), and subprocess output from toolchains. There is no server, database, or persistent state. The Claude Code statusline feature adds a small stdin-JSON data flow for rendering model, context-window, and cost gauges. Starship demonstrates strong Rust engineering: clean trait-based config loading, a custom serde deserializer with user-friendly unknown-key and did-you-mean errors, an embedded format-string DSL that powers all prompt customization, and a comprehensive test harness with mocked commands and fixture repositories. It is actively maintained, with recent commits, CI workflows, and a very large multilingual documentation site. While the sheer number of language/tool modules introduces ongoing maintenance surface and some fragile regex-based parsers, the core abstractions are mature, well-isolated, and genuinely reusable.

RATING: 9.6/10 MAINT: active DRIFT: low
▸ 4 reusable components found
ClickHouse/ClickHouse ★ 49319 8815 APPLICATION

ClickHouse is a high-performance, column-oriented OLAP database management system written primarily in C++. It is designed for real-time analytics on large datasets, supporting SQL queries, distributed execution, and various storage engines (MergeTree, ObjectStorage, etc.). The architecture is monolithic but modular, with distinct layers for parsing (Parsers), planning (Analyzer/Planner), execution (Processors), and storage (Storages). Key entry points include the server binary (`clickhouse-server`) and client tools (`clickhouse-client`). It relies heavily on C++ templates, RAII, and a plugin-like registration system for functions and storage engines. It supports distributed queries via ZooKeeper/Keeper and integrates with various cloud storage providers (S3, Azure, GCS).

RATING: 9.6/10 MAINT: active DRIFT: low
▸ 4 reusable components found
bevyengine/bevy ★ 48411 4865 APPLICATION

Bevy is a modular game engine built in Rust with an Entity Component System (ECS) at its core. It provides a complete 2D and 3D feature set including rendering, asset loading, audio, UI, animation, and physics systems. The engine uses a plugin-based architecture for extensibility and features a robust reflection system for runtime type inspection and serialization. Bevy emphasizes data-oriented design, productivity, and cross-platform support (desktop, web, mobile).

RATING: 9.6/10 MAINT: active DRIFT: low
▸ 4 reusable components found
pnpm/pnpm ★ 36715 1900 APPLICATION

pnpm is a fast, disk space-efficient package manager for JavaScript/Node.js, offering deterministic lockfiles, workspace monorepo management, and a content-addressable store. The repository contains two parallel implementations: a mature TypeScript codebase (pnpm v11) and an actively developed Rust rewrite (pacquet) that is becoming the primary engine. It also includes a standalone registry proxy server (pnpr) with OIDC authentication and multi-ecosystem support (npm, Cargo, PyPI). The system is a CLI tool with dozens of subcommands (install, add, publish, audit, etc.), a Node.js NAPI addon, and extensive lifecycle script handling. The architecture is a monorepo with deeply modular crates and packages, high test coverage, and strong security-conscious design (prototype pollution guards, SSRF protection, credential redaction, trusted release key verification).

RATING: 9.6/10 MAINT: active DRIFT: low
▸ 5 reusable components found
casey/just ★ 36088 856 APPLICATION

just is a command runner for project-specific tasks, akin to `make` but with a cleaner syntax and more features. It parses a `justfile` DSL and executes recipes (shell commands or scripts) with support for dependencies, variables, conditionals, functions, modules, and cross-platform execution. The architecture follows a classic compilation pipeline: lexer → parser → analyzer → evaluator → executor, implemented in Rust with clap for CLI parsing and extensive use of enums and traits for error handling and formatting. The codebase is well-structured with clear separation of concerns (e.g., `src/lexer.rs`, `src/parser.rs`, `src/compiler.rs`, `src/evaluator.rs`). It includes an extensive test suite, shell completions, man pages, and a self-hosting justfile for development. The project is actively maintained by a single primary contributor (casey) with rapid iteration and frequent releases, but the bus factor is a risk. It is not a data or research project; it is a pure application for task automation.

RATING: 9.6/10 MAINT: active DRIFT: low
▸ 6 reusable components found
fish-shell/fish-shell ★ 34267 2378 APPLICATION

The fish shell is a command-line shell for Unix-like systems, written primarily in Rust with a modular crate architecture. It provides an interactive environment with syntax highlighting, autosuggestions, tab completions, and a scripting language. The core is in `src/` with builtins, parser, reader, history, job control, etc. External dependencies include PCRE2, nix, fluent for localization, and various Rust crates. The architecture is a single binary with many built-in commands and a large set of shell functions and completions. Key entry points: `fish` binary, `fish_indent`, `fish_key_reader`. Data flows: user input -> parser -> execution -> output. Completions are dynamically generated from shell functions and external command output. The project is actively maintained with a comprehensive test suite and CI/CD pipeline.

RATING: 9.6/10 MAINT: active DRIFT: low
▸ 5 reusable components found
tokio-rs/axum ★ 27445 1507 APPLICATION

axum is a Rust web framework for building HTTP APIs, focusing on ergonomics, modularity, and type safety. It provides a trait-based extractor system for request parsing (FromRequest, FromRequestParts), a composable response system (IntoResponse), and middleware layering via the Tower ecosystem. The framework is built on top of hyper and tokio, offering async request handling with support for WebSockets, Server-Sent Events, file streaming, and more. The architecture is modular, with core traits defined in the `axum-core` crate, additional features (cookies, multipart, typed headers) in `axum-extra`, and proc macros for derive patterns in `axum-macros`. The main entry point is `axum::Router`, which provides methods for routing, nesting, merging, and applying middleware layers. Handlers are async functions that accept extractor arguments (Path, Query, Json, State, etc.) and return any type implementing IntoResponse. The framework emphasizes compile-time safety through macros like `#[derive(FromRequest)]` and `#[derive(TypedPath)]`, and provides debugging aids like `#[debug_handler]` for better type error messages. It includes a rich set of examples demonstrating common patterns such as database integration, authentication, real-time communication, and error handling. External dependencies include tower and tower-http for service abstractions, hyper for HTTP parsing, serde for serialization, and tokio for async runtime. The codebase is actively maintained with a clear versioning strategy, though the main branch contains breaking changes for the upcoming 0.9 release.

RATING: 9.6/10 MAINT: active DRIFT: low
▸ 5 reusable components found
actix/actix-web ★ 24855 1891 APPLICATION

Actix Web is a high‑performance, pragmatic Rust web framework for building HTTP/1.x and HTTP/2 servers and clients. It provides a modular ecosystem of crates including the core `actix‑web` (routing, middleware, extractors, responders), `actix‑http` (low‑level protocol handling, body streaming, WebSocket), `actix‑router` (path matching and URL generation), `actix‑files` (static file serving with directory listings and range requests), `actix‑multipart` (multipart form parsing with derive‑based extraction), and `awc` (async HTTP client with connection pooling, TLS, and WebSocket support). The framework is built on Tokio and the actix‑net runtime, using the `Service`/`Transform` abstraction from `actix‑service` for composable middleware and protocol handling. Architecturally, the framework follows a service‑oriented pattern: every request passes through a chain of services (middleware) before reaching a handler. Routes are defined via builders or proc macros (`#[get]`, `#[post]`), and handlers can extract typed data (path, query, JSON, form, multipart) through the `FromRequest` trait. Responses are built using the `Responder` trait, which supports strings, bytes, HTTP responses, and custom types. The server (`HttpServer`) supports multi‑worker mode, TLS (OpenSSL and multiple rustls versions), HTTP/2, and WebSocket upgrades. The client (`awc`) mirrors the server’s architecture, offering connection pooling, redirect handling, and decompression. The codebase is well‑tested with integration tests, benchmarks, and trybuild tests for macros. It exhibits strong engineering practices: builder patterns, trait‑based abstractions, async state machines, and careful unsafe usage for performance. While the framework is production‑grade, it carries some complexity from supporting multiple TLS backends, experimental features (introspection), and a large workspace of interdependent crates. Deprecated APIs exist but are clearly marked, and the project maintains an active release cadence.

RATING: 9.6/10 MAINT: active DRIFT: low
▸ 4 reusable components found
uutils/coreutils ★ 24229 2086 APPLICATION

This repository is a comprehensive Rust reimplementation of the GNU coreutils, providing approximately 100 standard Unix command-line utilities (cat, cp, cut, df, du, echo, false, fmt, head, id, kill, ln, ls, mv, nl, od, ptx, pwd, rm, seq, tac, tee, tr, tty, wc, who, yes, arch, base32, base64, basenc, chmod, chroot, comm, csplit, date, dirname, dircolors, expand, expr, factor, fold, groups, hostid, hostname, install, join, link, logname, md5sum, mkdir, mkfifo, mknod, mktemp, more, nice, nohup, nproc, numfmt, paste, pathchk, pinky, pr, printenv, printf, readlink, realpath, rmdir, sha*sum, shred, shuf, sleep, sort, split, stat, stdbuf, stty, sum, sync, tail, test, timeout, touch, tr, truncate, tsort, tty, uname, unexpand, uniq, unlink, uptime, users, vdir, wc, who, whoami, yes, and more). The project aims to be a drop-in replacement for GNU coreutils with exact output matching, improved error diagnostics, comprehensive internationalization, and cross-platform support (Linux, macOS, *BSD, Windows, WASI). It has been adopted by Ubuntu starting from version 25.10. Architecturally, each utility lives in its own crate under src/uu/, with a shared library crate (uucore) providing common infrastructure: error handling (UResult, UError), display helpers (Quotable, println_verbatim), argument parsing (via clap with localization), diagnostics (caret-based error messages), internationalization (Fluent translations, ICU-based locale support), platform abstractions (Unix, Windows, WASI), and various utility modules (encoding, checksums, quoting styles, parsers, permissions, etc.). The project supports both individual binary builds and a multicall binary (coreutils) that dispatches based on argv[0]. A separate binary (uudoc) generates manpages and shell completions. Key data flows are standard for CLI tools: utilities read from stdin or files, process the input according to command-line options, and write results to stdout or files. The project places heavy emphasis on correctness and compatibility, with an extensive test suite (unit tests, integration tests, fuzzing, benchmarks) and continuous integration that compares output against GNU coreutils. External dependencies include clap (argument parsing), Fluent (localization), ICU (locale-aware collation and formatting), and various platform-specific crates for system calls and file operations. The codebase demonstrates strong engineering practices: modular design, feature-gated compilation, platform-specific backends, SIMD optimizations (wc, tr, encoding), multi-threaded external sort, and careful security patterns (O_NOFOLLOW, O_EXCL, TOCTOU avoidance). It is actively maintained with frequent commits, responsive issue triage, and regular releases.

RATING: 9.6/10 MAINT: active DRIFT: low
▸ 6 reusable components found
risingwavelabs/risingwave ★ 9369 849 APPLICATION

RisingWave is a production-grade distributed streaming SQL database. The codebase implements a multi-node cluster composed of SQL frontend nodes (parser, binder, optimizer, planner), compute nodes running both streaming executors and batch execution, a meta service for catalog/scheduling/checkpoint coordination, and a custom LSM-tree storage engine (Hummock) over object storage. It speaks the PostgreSQL wire protocol, supports incremental CREATE MATERIALIZED VIEW over streaming inputs, and serves real-time queries and sinks. The repository is primarily an application, despite containing extensive benchmarks and deterministic simulation testing: those artifacts validate distributed-system correctness rather than performing data research.

RATING: 9.6/10 MAINT: active DRIFT: low
▸ 4 reusable components found
helix-editor/helix ★ 46455 3810 APPLICATION

Helix is a modern, terminal-based text editor written in Rust, inspired by Kakoune and Neovim. It provides a modal editing experience with multiple cursors, tree-sitter syntax highlighting, and deep Language Server Protocol (LSP) integration for features like code completion, diagnostics, hover, and code actions. The editor also supports the Debug Adapter Protocol (DAP) for debugging, version control integration via git, and a flexible snippet system. Its architecture is a multi-crate Cargo workspace with a core editing engine (helix-core), a view/document abstraction layer (helix-view), a terminal UI framework (helix-tui), and a terminal application crate (helix-term) that ties everything together with an async event loop using tokio. The editor is highly configurable through TOML files and supports a vast number of programming languages via tree-sitter grammars and LSP servers. The codebase demonstrates strong engineering practices: clean separation of concerns across crates, extensive use of Rust's type system for safety, and a composable event-driven architecture. Notable reusable components include a standalone LSP type definitions crate (helix-lsp-types), a generic event/hook system (helix-event), a parser combinator library (helix-parsec), and a terminal UI widget library (helix-tui) that could be extracted for other TUI applications. The editor's picker UI component and command-line parser are also well-designed patterns. While there is some architectural debt (tight coupling between helix-term and other crates, some unsafe code for performance), the overall quality is high and the project is actively maintained with frequent releases.

RATING: 9.5/10 MAINT: active DRIFT: low
▸ 5 reusable components found
sharkdp/fd ★ 44637 1151 APPLICATION

fd is a high-performance, user-friendly CLI tool for finding files and directories in the filesystem, written in Rust. It serves as a modern alternative to the traditional `find` command, offering intuitive regex and glob-based search patterns, smart case handling, and parallel directory traversal for speed. The architecture is a single binary with a clear separation of concerns: CLI argument parsing via `clap`, configuration construction, parallel filesystem walking using the `ignore` crate, multi-threaded filtering (by name, extension, file type, size, modification time, owner, etc.), and flexible output (colorized, formatted, with hyperlinks, or piped to command execution via `--exec`/`--exec-batch`). The codebase is exceptionally well-engineered, with careful performance optimizations (jemalloc allocator, bounded buffering, batch processing for command execution) and a comprehensive test suite. It is not a data research project; it is a polished application tool.

RATING: 9.5/10 MAINT: active DRIFT: low
▸ 5 reusable components found
$ loading more...
$ submit: