Crates.io | workflow_macro |
lib.rs | workflow_macro |
version | 0.0.3 |
source | src |
created_at | 2022-07-21 10:06:18.963229 |
updated_at | 2023-01-06 13:08:53.469244 |
description | Derive Macro for Workflow-Aurras |
homepage | |
repository | https://github.com/HugoByte/aurras/workflow/workflow_macro |
max_upload_size | |
id | 629567 |
size | 7,215 |
This is a Derive Macro for Workflow-Aurras. This macro implements necessary methods for workflow, like add node, delete node, add edges, etc..
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;
#[derive(Flow)]
pub struct Worflow{
edges: Vec<(usize, usize)>,
nodes: Vec<`node_type`>,
}
Licensed under Apache-2.0