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

#312 in Authentication

Download history 1/week @ 2022-09-05 36/week @ 2022-09-12 34/week @ 2022-09-26 1/week @ 2022-10-03 6/week @ 2022-10-31 1/week @ 2022-11-14 1/week @ 2022-11-28 9/week @ 2022-12-05 5/week @ 2022-12-12 39/week @ 2022-12-19

54 downloads per month

Apache-2.0

10KB
127 lines

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.

Dependencies

~205–610KB
~15K SLoC