driveby 1.0.1

Debug counter for Rust
Documentation
  • Coverage
  • 100%
    5 out of 5 items documented4 out of 5 items with examples
  • Size
  • Source code size: 8.59 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.15 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 9s Average build duration of successful builds.
  • all releases: 9s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • trip-flip/driveby
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • trip-flip

DriveBy

Ever needed a counter to see how many times a line of code is passed? Here you go.

Examples

Run without arguments to get basic debug information:

pass!(); // Stderr: [<count>][<line_number>]

You can pass a literal to have it printed:

// Stderr: [<count>][<line_number>] Special message
pass!("Special message");
// Stderr: [<count>][<line_number>] a
pass!('a');
// Stderr: [<count>][<line_number>] 5999999
pass(5999999)

You can pass a variable with the Display trait too:

let hw = String::from("Hello world");
let num = 5;
// Stderr: [<count>][<line_number>] Hello world
pass!(hw);
// Stderr: [<count>][<line_number>] 5
pass!(num);