logcall 0.1.13

An attribute macro that logs the function return value.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#[async_trait::async_trait]
trait TestTrait {
    async fn test(&self, value: String) -> String;
}

struct Test;

#[async_trait::async_trait]
impl TestTrait for Test {
    #[logcall::logcall]
    async fn test(&self, _: String) -> String {
        "test".to_string()
    }
}

fn main() {}