Thanks to visit codestin.com
Credit goes to lib.rs

12 releases

0.3.8 Dec 7, 2025
0.3.7 Nov 17, 2025
0.3.6 Mar 7, 2025
0.3.5 Nov 6, 2024
0.1.0 Feb 10, 2021

#536 in Procedural macros

Codestin Search App Codestin Search App Codestin Search App Codestin Search App Codestin Search App Codestin Search App Codestin Search App Codestin Search App Codestin Search App Codestin Search App Codestin Search App Codestin Search App Codestin Search App Codestin Search App Codestin Search App Codestin Search App Codestin Search App

110 downloads per month
Used in 5 crates (3 directly)

MIT license

17KB
374 lines

Library for the despatma crate. This library has some extra tokens not defined in syn that are used by despatma. These are used as options for design pattern inputs or for type inputs.

Optional features

Like syn, some functionality are behind optional features to optimize compile-time. Currently the follow feature is available:

  • extra-traits — Debug, Eq, PartialEq, Hash impls for all syntax tree types.

Despatma

githubcrates-iodocs-rsworkflow

Despatma is a collection of design pattern macros (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:

Next up for investigation is:

  • Decorator
  • Proxy
  • Adapter
  • Mediator
  • Observer
  • A smarter Visitor

Dependencies

~170–570KB
~13K SLoC