Crates.io | debug_utils |
lib.rs | debug_utils |
version | 0.1.2 |
source | src |
created_at | 2023-12-04 15:16:36.593216 |
updated_at | 2023-12-04 15:34:20.438307 |
description | A utility crate for enhanced debugging in Rust |
homepage | |
repository | |
max_upload_size | |
id | 1057703 |
size | 3,228 |
A macro for printing debug information about variables.
Add this to your Cargo.toml
:
[dependencies]
debug_utils = "*"
use debug_utils::debug;
fn main() {
let x = 42;
debug!(x);
}
Outputs: {var} <{type}> = {value}
{x} <i32> = 42