Rust crates directly used
- tokio Rust' asynchronous runtime, similar to ASIO for C++.
- Tokio Is a tool that provides the building blocks for writing network applications without compromising speed. It includes a stack of various components, such as Hyper, Tonic, Tower, and Mio, for different needs and scenarios.
- tonic Is a Rust implementation of gRPC
- clap Provides powerful command line argument parsing
- anyhow Provides better error handling
cargo build --release --bin client --bin server
In one shell window run command
cargo run --release --bin server
In a second shell window run command
cargo run --release --bin client -- --user "UserName" --password "Password"
You shouldn't crate a real program that takes password on the command line but this is a demo only.
Work in progress.