# fadeevab/design-patterns-rust

Rust examples for all 23 classic GoF design patterns, and even a little more

Repository: https://github.com/fadeevab/design-patterns-rust
Canonical: https://ross.abutalabs.com/products/design-patterns-rust
Language: Rust
License: NOASSERTION
License Family: other
Topics: design-patterns, rust
Last push: 2025-01-01T17:16:57+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 1506, "days_push": 609, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases, no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1060, forks 94 (observed 2026-08-28T04:03:25.692035+00:00)

## What it is
A collection of Rust examples covering all 23 classic GoF design patterns, with conceptual and real-world implementations that follow idiomatic Rust practices. It is part of the Refactoring.Guru project and each example runs via cargo with accompanying README explanations.

## Use cases
- learn design patterns in rust
- see how to implement singleton in rust
- rust examples of gof patterns
- study behavioral patterns with rust ownership
- find idiomatic rust alternatives to classic oop patterns
- teach design patterns with runnable code

## When to choose
- you want runnable, idiomatic Rust examples of all 23 GoF patterns
- you are learning Rust and already know classic OOP design patterns
- you need reference implementations for creational, structural, and behavioral patterns

## When to avoid
- you need a production-ready pattern library to depend on
- you want patterns in a language other than Rust
- you need comprehensive software architecture guidance beyond design patterns

## Facets
- artifact type: learning-resource
- maturity: active
- function: developer-tools
- domain: programming-languages, tutorials
- platform: rust, cli, cross-platform
- tags: design-patterns, gof-patterns, rust-examples, educational, refactoring-guru, algorithms

## Member repositories
- fadeevab/design-patterns-rust (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:25.692035+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:56:56.242278+00:00, confidence not recorded.
  - readme: https://github.com/fadeevab/design-patterns-rust (fetched 2026-08-28T04:03:25.692035+00:00, sha 83de9ecfb834)
- Data as of 2026-08-30T08:39:29.467469+00:00.
