33 releases (breaking)
0.27.0 | Nov 23, 2021 |
---|---|
0.25.0 | Oct 25, 2021 |
0.11.0 | Jul 29, 2021 |
0.1.4 | Mar 4, 2021 |
#34 in #ockam
61 downloads per month
11KB
127 lines
ockam_node_attribute
Ockam is a library for building devices that communicate securely, privately and trustfully with cloud services and other devices.
This crate provides the #[node]
attribute proc_macro. This 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 main Ockam crate re-exports this macro and it is
intended to be used as #[ockam::node]
, see Ockam
crate.
Usage
Add this to your Cargo.toml
:
[dependencies]
ockam_node_attribute = "0.27.0"
License
This code is licensed under the terms of the Apache License 2.0.
Dependencies
~1.5MB
~35K SLoC