Skip to content
Oeiuwq Faith Blog OpenSource Porfolio

mre/idiomatic-rust

๐Ÿฆ€ A peer-reviewed collection of articles/talks/repos which teach concise, idiomatic Rust.

mre/idiomatic-rust.json
{
"createdAt": "2017-05-03T10:21:10Z",
"defaultBranch": "master",
"description": "๐Ÿฆ€ A peer-reviewed collection of articles/talks/repos which teach concise, idiomatic Rust.",
"fullName": "mre/idiomatic-rust",
"homepage": "http://idiomatic.rs",
"language": "Rust",
"name": "idiomatic-rust",
"pushedAt": "2025-11-07T14:46:29Z",
"stargazersCount": 7405,
"topics": [
"ergonomics",
"idiomatic",
"idiomatic-rust",
"rust"
],
"updatedAt": "2025-11-25T19:31:06Z",
"url": "https://github.com/mre/idiomatic-rust"
}

Check Links

This repository collects resources for writing clean, idiomatic Rust code. You can find a sortable/searchable version of this list here.

Idiomatic coding means following the conventions of a given language. It is the most concise, convenient, and common way of accomplishing a task in that language, rather than forcing it to work in a way the author is familiar with from a different language. - Adapted from Tim Mansfield

Contributions welcome! To add missing resources, please refer to the contributing documentation.

  • blessed.rs โ€” An unofficial guide to the Rust ecosystem. Suggestions for popular, well-maintained crates.

  • cheats.rs - Idiomatic Rust tips โ€” A list of quick tips to make your code more idiomatic.

  • clippy โ€” A bunch of lints to catch common mistakes and improve your Rust code.

  • Elements of Rust โ€” A collection of software engineering techniques for effectively expressing intent with Rust.

  • Patterns โ€” A catalogue of design patterns in Rust.

  • Possible Rust โ€” A blog for intermediate Rust programmers exploring real-world code and design patterns.

  • Rust Anthology โ€” The best short-form writing about Rust, collected.

  • Rust API Guidelines โ€” An extensive list of recommendations for idiomatic Rust APIs.

  • Rust by Example โ€” A community driven collection of example code which follow Rust best practices.

  • The Four Horsemen of Bad Rust Code โ€” A talk about common pitfalls in Rust code like overengineering and premature optimization. [Video]
  • Tricks of the Trait: Enabling Ergonomic Extractors โ€” Rust Nation UK, Feb. 2023 [Video]
  • Ergonomic APIs for hard problems โ€” RustLab Conference, October 2022 [Video]
    • Nine Rules for Elegant Rust Library APIs โ€” Seattle Rust Meetup, Sep. 2022 [Video]
  • Macros for a More Productive Rust โ€” RustConf 2020 [Video]
  • Making Rust Delightful โ€” RustCon Asia 2019 [Video]
  • Idiomatic Rust - Writing Concise and Elegant Rust Code โ€” FOSDEM 2018 [Video]
  • Idiomatic Rust Libraries โ€” Rustfest Kiev [Video]

Coming from Python, I loved the guidelines on how idiomatic Python looks like. I was inspired by the likes of Peter Norvig, who wrote amazing articles on spellcheckers and sudoku solvers; and, of course, the Zen of Python. For Rust, there is no such thing as the Zen of Python, however, so I started collecting my own resources. The goal of this project is to create a peer-reviewed collection of articles/talks/repos, which teach idiomatic Rust style. Itโ€™s a community project and you can contribute.

CC0

To the extent possible under law, Matthias Endler has waived all copyright and related or neighboring rights to this work. Logo adapted from FreePik.com.