ockam_node_attribute

Crates.ioockam_node_attribute
lib.rsockam_node_attribute
version0.27.0
sourcesrc
created_at2021-01-31 00:56:52.966257
updated_at2021-11-23 16:33:34.355686
descriptionOckam node attribute proc_macro.
homepagehttps://github.com/ockam-network/ockam
repositoryhttps://github.com/ockam-network/ockam/tree/develop/implementations/rust/ockam/ockam_node_attribute
max_upload_size
id348694
size13,134
Matthew Gregory (mattgreg)

documentation

README

ockam_node_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] 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.

Commit count: 9096

cargo fmt