rust-unofficial/patterns
rust-unofficial/patterns has 8,934 GitHub stars and 417 forks. GitHot measured +1 stars in 24 hours. Last checked 2026-11-07 15:48 UTC. Last push 2026-10-26.
A catalogue of Rust design patterns, anti-patterns and idioms
Measured star growth
- in 24h
- +1
- in 7 days
- Update delayed
- in 15 days
- Update delayed
- in 1 month
- Update delayed
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
OriginalRust Design Patterns
An open source book about design patterns and idioms in the Rust programming language that you can read here.
You can also download the book in PDF format from this link.
Contributing
You are missing content in this repository that can be helpful for others, and you are eager to explain it? Awesome! We are always happy about new contributions (e.g. elaboration or corrections on certain topics) to this project.
You can check the Umbrella issue for all the patterns, anti-patterns, and idioms that could be added.
We suggest reading our Contribution guide to get more information on how contributing to this repository works.
Building with mdbook
This book is built with mdbook. You can
install it by running cargo install mdbook.
Additional dependencies
cargo install mdbook-last-changedfor date changes in the footercargo install mdbook-pandocfor rendering the book to PDFcargo install mdbook-i18n-helpersfor translation and i8n support
Texlive
# Source the .env file to get the PANDOC_VERSION
. ./.env
sudo apt-get update
sudo apt-get install -y texlive texlive-latex-extra texlive-luatex texlive-lang-cjk librsvg2-bin fonts-noto
curl -LsSf https://github.com/jgm/pandoc/releases/download/$PANDOC_VERSION/pandoc-$PANDOC_VERSION-linux-amd64.tar.gz | tar zxf -
Building the book
If you want to build it locally you can run one of these two commands in the root directory of the repository:
mdbook buildBuilds static html pages as output and place them in the
/bookdirectory by default.mdbook serveServes the book at
http://localhost:3000(port is changeable, take a look at the terminal output to be sure) and reloads the browser when a change occurs.
License
The content of this repository is licensed under MPL-2.0; see LICENSE.
Explore related projects
codecrafters-io/build-your-own-x
Master programming by recreating your favorite technologies from scratch.
560,871 starspublic-apis/public-apis
A collective list of free APIs
497,116 starsmorluto/rea
Reverse engineer anything with agents, from app behavior down to native binaries.
441,867 starsopenclaw/openclaw
The AI that really does things. Any OS. Any Platform. The lobster way. 🦞
394,166 stars