A real-time chat application built with Rust and gRPC.
cd server
cargo runcd client
cargo run -- --username YourNameproto/- Protocol Buffers definitionsserver/- Server implementationclient/- Client implementation
--usernameor-u: Set your username (default: "anonymous")--serveror-s: Set server address (default: "http://[::1]:50051")
cargo run -- --username Alice --server http://localhost:50051| Command | Description |
|---|---|
/quit |
Exit the application |
/help |
Show available commands |
/nick <name> |
Change your username |
/users |
List connected users |
/clear |
Clear the screen |
- Type messages and press Enter to send
- Your messages appear in blue, others' in green
- System messages appear in yellow
- Rust (1.65+)
- Protocol Buffers compiler
# Clone the repository
git clone https://github.com/yourusername/tonic-chat.git
cd tonic-chat
# Build the project
cargo build --releasecargo test- Real-time messaging with gRPC streaming
- User presence tracking
- Username customization
- Command-based interface
- Cross-platform support