func_wrap 0.1.3

Helper crate for procedural macro authors that wish to duplicate some received function inside its body, so as to be able to wrap with some prologue, epilogue, cache-ing, etc.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#[test]
fn downstream_example ()
{
    let mut cmd = ::std::process::Command::new(env!("CARGO"));
    assert!(
        cmd .current_dir("downstream")
            .args(&["check", "--example", "user", "-q"])
            .status()
            .unwrap_or_else(|err| panic!(
                "Command `{:?}` failed: {}", cmd, err,
            ))
            .success()
        );
}