3 releases

0.0.3 Jan 6, 2023
0.0.2 Jul 21, 2022
0.0.1 Jul 21, 2022

#904 in Procedural macros

21 downloads per month

Apache-2.0

8KB
111 lines

Workflow Macro

Description

This is a Derive Macro for Workflow-Aurras. This macro implements necessary methods for workflow, like add node, delete node, add edges, etc..

Setup

Add following libraries.

workflow_macro = "0.0.2"

In your Cargo.toml file of your rust package.

Access this Macro by importing.

use workflow_macro::Flow;

Usage

Creates necessary methods to for Workflow.

#[derive(Flow)]
 pub struct Worflow{

   edges: Vec<(usize, usize)>,
   nodes: Vec<`node_type`>,

 }

References

License

Licensed under Apache-2.0

Dependencies

~1.5MB
~35K SLoC