intehan_util_dump

Crates.iointehan_util_dump
lib.rsintehan_util_dump
version0.1.2
created_at2025-11-01 13:45:17.657975+00
updated_at2025-11-01 14:12:23.045147+00
descriptionConvenience macros
homepage
repositoryhttps://github.com/JohanNorberg/intehan_util
max_upload_size
id1912006
size5,367
JohanNorberg (JohanNorberg)

documentation

https://github.com/JohanNorberg/intehan_util/blob/main/intehan_util_dump/README.md

README

INTEHAN UTIL DUMP

Sortof like dbg! but easier to use and read.

Example

use intehan_util_dump::dump;

fn main() {
    let foo = 1;
    dump!(foo);
    dump!("test one", foo);
    let bar = 2;
    dump!("test two", foo, bar);
    dump!(foo, bar);
    let car = 3;
    dump!("test two", foo, bar, car);
    dump!(foo, bar, car);
}

prints:

[intehan_util_testbed/src/main.rs:5:5] [-] | foo = 1 |
[intehan_util_testbed/src/main.rs:6:5] [test one] | foo = 1 |
[intehan_util_testbed/src/main.rs:8:5] [test two] | foo = 1 | bar = 2 |
[intehan_util_testbed/src/main.rs:9:5] [-] | foo = 1 | bar = 2 |
[intehan_util_testbed/src/main.rs:11:5] [test two] | foo = 1 | bar = 2 | car = 3 |
[intehan_util_testbed/src/main.rs:12:5] [-] | foo = 1 | bar = 2 | car = 3 |
Commit count: 0

cargo fmt