Rusty Chat is a simple, TUI-based chat application built with Rust using the cursive crate for the user interface and tokio for asynchronous networking. It allows users to connect to a chat server and exchange messages in real-time.
src/bin/server,rs: The server-side implementation that handles incoming connections and broadcasts messages to all connected clients.src/bin/client.rs: The client-side implementation that connects to the server, sends messages, and displays incoming messages in a TUI.
- Linux
- macOS
- Windows (untested)
- Ensure you have Rust and Cargo installed. You can install it from rustup.rs.
- Install using cargo:
cargo install rusty-chat-app
- Run the server:
rusty-chat-server
- In a new terminal, run the client:
rusty-chat-clientusername>gt;
-
Make sure you have Rust and Cargo installed. You can install it from rustup.rs.
-
Clone the repository:
git clone https://github.com/arjav0703/chat-app.git
-
Navigate to the project directory:
cd chat-app -
Start the server:
cargo run --bin server
-
In a new terminal, start the client:
cargo run --bin clientusername>gt;
I used this (https://youtu.be/653rafFNBmA?si=mjYuBcQNu69gOYtM) video as a reference to build this project.