5 releases (breaking)

0.5.0 Nov 23, 2021
0.4.0 Nov 15, 2021
0.3.0 Nov 9, 2021
0.2.0 Nov 2, 2021
0.1.0 Oct 25, 2021

#36 in #ockam

Apache-2.0

24KB
498 lines

ockam_node_test_attribute

crate docs license discuss

Ockam is a library for building devices that communicate securely, privately and trustfully with cloud services and other devices.

This crate provides the #[node] and #[node_test] attribute proc_macros. The #[node] macro transforms 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] does the same but for test functions.

Usage

Add this to your Cargo.toml:

[dependencies]
ockam_node_test_attribute = "0.5.0"

License

This code is licensed under the terms of the Apache License 2.0.

Dependencies

~1.5MB
~33K SLoC