Our great sponsors
-
regex
An implementation of regular expressions for Rust. This implementation uses finite automata and guarantees linear time matching on all inputs.
-
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.
-
ripgrep
ripgrep recursively searches directories for a regex pattern while respecting your gitignore
-
rust-analyzer
Discontinued A Rust compiler front-end for IDEs [Moved to: https://github.com/rust-lang/rust-analyzer] (by rust-analyzer)
-
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.
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
Rust Itself
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.
How come ripgrep wasn't mentioned yet?
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.
https://github.com/microsoft/windows-rs should be Microsoft-standard..!
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.