What are some examples of particularly well written crates?

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
  • regex

    An implementation of regular expressions for Rust. This implementation uses finite automata and guarantees linear time matching on all inputs.

  • I'd consider regex to be a good example candidate. It has many tests, including benchmarks, fuzzing, and unit testing. It works well as an example of how to structure a mid-size program.

  • bevy

    A refreshingly simple data-driven game engine built in Rust

  • Bevy

  • 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
  • rust

    Empowering everyone to build reliable and efficient software.

  • Rust Itself

  • redis-rs

    Redis library for rust

  • I think the redis crate was a well-organized API library. It's still sometimes hard to know the right things to make public and I think they nailed it.

  • sled

    the champagne of beta embedded databases

  • ripgrep

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

  • How come ripgrep wasn't mentioned yet?

  • rust-analyzer

    Discontinued A Rust compiler front-end for IDEs [Moved to: https://github.com/rust-lang/rust-analyzer] (by rust-analyzer)

  • rust-analyzer has put a lot of work into its organization. Especially architecture.md explains a lot of the API decisions and the reasoning behind them.

  • 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
  • windows-rs

    Rust for Windows

  • https://github.com/microsoft/windows-rs should be Microsoft-standard..!

  • pulldown-cmark

    An efficient, reliable parser for CommonMark, a standard dialect of Markdown

  • The crate that's closest to production quality code is pulldown-cmark, but I don't hold it up as an example of well-written code, because it's not particularly easy to understand and there's a lot of very low level code to consume the CommonMark syntax - that helps with code bloat and compile time, but not clarity.

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