10 releases
0.3.6 | Mar 7, 2025 |
---|---|
0.3.5 | Nov 6, 2024 |
0.3.4 | Sep 24, 2024 |
0.3.2 | Aug 16, 2024 |
0.1.0 | Feb 10, 2021 |
#481 in Procedural macros
373 downloads per month
Used in 5 crates
(3 directly)
17KB
374 lines
Despatma
Despatma is a collection of des
ign pat
tern ma
cros (despatma
) born from a Honours project.
It aims to provide the most common implementations for design patterns at run-time.
This project is still a work in progress. The end goal is to be as Loki is for C++ and more if possible. The following patterns are currently implemented:
- abstract_factory - with the help of interpolate_traits macro
- visitor
- dependency_container
Next up for investigation is:
- Decorator
- Proxy
- Adapter
- Mediator
- Observer
- A smarter Visitor
Dependencies
~205–630KB
~15K SLoC