commonware-macros 2026.4.0

Augment the development of primitives with procedural macros.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#[cfg(test)]
mod tests {
    use commonware_macros::test_async;

    #[test_async]
    async fn test_async_fn() {
        assert_eq!(2 + 2, 4);
    }

    #[test_async]
    #[should_panic(expected = "This test will panic")]
    async fn test_async_panic() {
        panic!("This test will panic");
    }
}