Crates.io | ockam_node_attribute |
lib.rs | ockam_node_attribute |
version | 0.27.0 |
source | src |
created_at | 2021-01-31 00:56:52.966257 |
updated_at | 2021-11-23 16:33:34.355686 |
description | Ockam node attribute proc_macro. |
homepage | https://github.com/ockam-network/ockam |
repository | https://github.com/ockam-network/ockam/tree/develop/implementations/rust/ockam/ockam_node_attribute |
max_upload_size | |
id | 348694 |
size | 13,134 |
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.
Add this to your Cargo.toml
:
[dependencies]
ockam_node_attribute = "0.27.0"
This code is licensed under the terms of the Apache License 2.0.