#pattern #command #stratagem

macro stratagem-macros

Provides a derive macro for automatically implementing the Commander trait, simplifying command-based state management with undo/redo support

1 unstable release

new 0.1.0 Mar 28, 2025

#921 in Procedural macros


Used in stratagem

MIT/Apache

7KB

Stratagem Macros

A companion crate for Stratagem that provides a derive macro for automatically implementing the Commander trait. It simplifies the process of defining command-based state management by generating the necessary boilerplate, making it easier to integrate undo/redo functionality in no_std environments.

Dependencies

~190–620KB
~15K SLoC