func_trace 1.0.2

A procedural macro for tracing the execution of functions
Documentation
use func_trace::trace;

fn main() {
    foo::foo();
    let foo = foo::Foo;
    foo.bar();
}

#[trace]
mod foo {
    pub(super) fn foo() {
        println!("I'm in foo!");
    }

    pub(super) struct Foo;
    impl Foo {
        pub(super) fn bar(&self) {}
    }
}

#[cfg(test)]
#[macro_use]
mod trace_test;

#[cfg(test)]
trace_test!(test_mod, main());