3 releases
0.1.2 | Dec 4, 2023 |
---|---|
0.1.1 | Dec 4, 2023 |
0.1.0 | Dec 4, 2023 |
2KB
debug! macro
A macro for printing debug information about variables.
Installation
Add this to your Cargo.toml
:
[dependencies]
debug_utils = "*"
Usage
use debug_utils::debug;
fn main() {
let x = 42;
debug!(x);
}
Outputs: {var} <{type}> = {value}
{x} <i32> = 42