ockam_node_test_attribute 0.5.0

Ockam node attribute proc_macros.
Documentation
1
2
3
4
5
6
7
8
// This test checks that #[ockam_node_test_attribute::node] causes a compile time error
// if the function is passed a parameter of type `ockam::Context` but is unused.

#[ockam_node_test_attribute::node]
async fn main(_ctx: ockam::Context) {
    // _ctx.stop().unwrap();
    let _x = 42 as u8;
}