11 releases (3 stable)

Uses old Rust 2015

1.1.1 May 29, 2015
0.8.0 May 3, 2015

#8 in #enter

Download history 10/week @ 2024-03-30 2/week @ 2024-04-06 1/week @ 2024-06-08 1/week @ 2024-06-15

147 downloads per month

MIT license

9KB
91 lines

A crate with printing macros.

These macros aims to provide a simple and lazy way to print formatted traces.

Simple example of usage:

#[macro_use(TRACE, ENTER)]
extern crate trace_macros;

fn double_var(var: i32) -> i32 {
   ENTER!(var);
   var * var
}

fn main() {
   ENTER!();
   TRACE!("I'm", "doing", "some", "lazy", "tracing");
   TRACE!("Result:", double_var(2));
   traceln!("2*2 = {}", double_var(2));
}

No runtime deps