Crate ockam_node_test_attribute

Source
Expand description

Node attributes proc_macros.

The #[node] macro transform an async input main function into a regular output main function that sets up an ockam node and executes the body of the input function inside the node.

The #[node_test] macro transform an async input function into a test output function that sets up an ockam node and executes the body of the input function inside the node.

Attribute Macrosยง

node
Marks an async function to be run in an ockam node.
node_test
Marks an async test function to be run in an ockam node.