| Crates.io | utils-box-debug |
| lib.rs | utils-box-debug |
| version | 1.0.1 |
| created_at | 2025-11-03 07:54:02.037831+00 |
| updated_at | 2025-11-03 07:54:02.037831+00 |
| description | A toolbox of various small RUST utilities that make handling different types client/server connections easier |
| homepage | |
| repository | https://github.com/klispap/utils-box |
| max_upload_size | |
| id | 1914130 |
| size | 25,200 |
A toolbox library that holds a useful collection of small unitilies written in Rust that make our life easier when writting Rust applications.
Print in log or stdout debug information from vectors, hashmaps in a human readable way. Pause execution at specific moments to make debugging easier.
Mininal Example:
// Complex data operations before [..]
let data: Vec<f64> = (0..100).iter().map(|&x| x * f64::PI).collect();
// Print debug information from data vector
vector_display(&data[0..10],"Mult_PI", IdxMode::Based1);
// Pause execution to check values
pause();
// Complex data operations after [..]
Make sure you have the following system-level dependencies installed:
sudo apt install pkg-config build-essential fontconfig libfontconfig1-dev
Verify that pkg-config can detect libstdc++ properly:
pkg-config --libs libstdc++
If libstdc++ is not detected, add the symbolic link:
sudo ln -s /usr/lib/gcc/x86_64-linux-gnu/11/libstdc++.so /usr/lib/libstdc++.so