enum_pipeline-0.1.0 has been yanked.
enum_pipline
Provides a way to use enums to describe and execute ordered data pipelines. 🦀🐾
I needed a succinct way to describe 2d pixel map operations for a game I'm working on. I wanted callers to be able to easily determine all possible operations (hence enum
), with per-operation data (hence variants), and their operation-specific logic (proc-macro coming soon). This is what I came up with!
use ;
There are variants for pipelines with global data as well (passed as an argument to execute
), and I'm working on a proc-macro that can generate the boilerplate match
logic, shelling out to different user provided functions for each operation.
TODO
- finish the proc-macro stuff
- document the proc-macro
- add example directory
License
MIT