Summary
A toolbox library that holds a useful collection of small unitilies written in Rust that make our life easier when writting Rust applications.
Utilities provided:
Archives
Extract files from Tar, Gz and Zip Files
Mininal Example:
let archive: PathBuf = current_exe
.unwrap
.parent
.unwrap
.join;
let file: PathBuf = "treasure.hex".into;
let destination: PathBuf = current_exe
.unwrap
.parent
.unwrap;
extract_file.unwrap;
Tips for resolving Ubuntu 22.04/24.04 build issues:
-
Make sure you have the following system-level dependencies installed:
sudo apt install pkg-config build-essential fontconfig libfontconfig1-dev -
Verify that
pkg-configcan detectlibstdc++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