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:
SSH Client
Connect via SSH to a server to perform commands, upload & download files
Mininal Example:
let ssh = local.unwrap;
let stdout = ssh.execute_cmd.unwrap;
println!;
TCP Client
Connect via TCP to a socket to send and receive data
Mininal Example:
let mut tcp_client = new?;
let data: = vec!;
tcp_client.send?;
// Block and wait for response
let resp = tcp_client.receive?;
println!;
TCP Client
Connect via UDP to a socket to send and receive data
Mininal Example:
let mut udp =
new.unwrap;
udp.send.unwrap;
// Block and wait for response
let data = udp.receive.unwrap;
println!;
ZMQ Client
Connect to a ZMQ server to send and receive data
Mininal Example:
let zmq_client = new
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