| Crates.io | intehan_util_dump |
| lib.rs | intehan_util_dump |
| version | 0.1.2 |
| created_at | 2025-11-01 13:45:17.657975+00 |
| updated_at | 2025-11-01 14:12:23.045147+00 |
| description | Convenience macros |
| homepage | |
| repository | https://github.com/JohanNorberg/intehan_util |
| max_upload_size | |
| id | 1912006 |
| size | 5,367 |
Sortof like dbg! but easier to use and read.
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 |