mirror of
https://github.com/mre/idiomatic-rust
synced 2024-11-26 05:50:20 +00:00
1.9 KiB
1.9 KiB
This repository collects resources for writing clean, idiomatic Rust code. Please add your own. 😄
Articles
2017
- Lessons learned redesigning and refactoring a Rust Library by @mgazotti -
RefCell
, the builder pattern and more.
2016
- Russian Dolls and clean Rust code by @mgazotti - How to use the full power of
Option
andResult
(especiallyand_then()
andunwrap_or()
). - Elegant Library APIs in Rust by @killercup - Many helpful tips and tricks for writing libraries in Rust.
- Teaching libraries through good documentation by @killercup - How to use the full power of Rust's documentation support (e.g. doc tests)
2015
- Rust traits for developer friendly libraries by @benashford - Thoughts about implementing good Rust libraries.
Projects
- clippy - A bunch of lints to catch common mistakes and improve your Rust code.
- Patterns - A catalogue of Rust design patterns.
- rust-api-guidelines - An extensive list of recommendations for idiomatic Rust APIs.
License
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.