Looking for some small rust projects with an elegant code base that I can study.

This page summarizes the projects mentioned and recommended in the original post on /r/rust

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • ripgrep

    ripgrep recursively searches directories for a regex pattern while respecting your gitignore

  • https://github.com/BurntSushi/ripgrep if you're not afraid to delve deep a bit

  • command-line-rust

    Code for Command-Line Rust (O'Reilly, 2022, ISBN 9781098109417) https://learning.oreilly.com/library/view/command-line-rust/9781098109424/

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
  • ncspot

    Cross-platform ncurses Spotify client written in Rust, inspired by ncmpc and the likes.

  • Ncspot. A terminal Spotify client. Small, simple, well organized, async, perfect for learning. https://github.com/hrkfdn/ncspot

  • code

    Source code for the book Rust in Action (by rust-in-action)

  • json

    Strongly typed JSON library for Rust (by serde-rs)

  • I think serde-json is quite nice. It's easy to follow, uses traits for ideomatic polymorphism, and is just nice in general.

  • chess-tactics-cli

    A tactics trainer for the command line

  • pipe-rename

    Rename your files using your favorite text editor

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • bessie

    an authenticated, chunked cipher based on BLAKE3

  • This is my code, so reader beware, but here's an example of a toy command line program which uses clap v3 with subcommand support, anyhow-based error handling, and a little bit of abstraction with std::io traits: https://github.com/oconnor663/bessie/blob/main/rust/bin/src/main.rs

  • stitch

    Communication between threads in a reactive, real-time safe manner. (by jleben)

  • I think stitch is a great example. It's a pretty small library that accomplishes a single goal (real-time lock-free queues for inter-process communication). Uses modern C++--atomics, std::array. It's reasonably well tested. AND uses modern CMake best practices.

  • nushell

    A new type of shell

  • argparse

    Argument Parser for Modern C++

  • argparse is another good one. Templated (delicious), tested, AND has conan and debian package deployment.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts