A lightweight, terminal-based chat application built from scratch using Rust's
TcpStream. Features a built-in AI assistant triggered via@AI.
- 🛠 Built using low-level Rust networking primitives (
TcpListener,TcpStream) - 💬 Real-time chat across multiple clients
- 🤖 AI Assistant: Mention
@AIin your message to invoke an intelligent assistant - ⚡ Blazing fast and memory-safe thanks to Rust
- 🎓 University of Michigan inspired design
- Rust (>=1.70)
- Cargo
git clone https://github.com/yourusername/mchat.git
cd mchat
cargo build --releasecargo run --bin serverIn a new terminal:
cargo run --bin clientConnect multiple clients in different terminals to simulate multi-user chat.
To invoke the AI assistant, simply type a message like:
@AI What's the weather today?
The assistant will respond directly in the chat with relevant information.
This project was built with ❤️ at the University of Michigan. Go Blue! 💙💛 Logo courtesy of Wikipedia Commons.
MIT License
Pull requests are welcome! For major changes, please open an issue first to discuss what you would like to change.
Feel free to reach out via issues or email me at jtwuuuuu@umich.edu.
Let me know if you'd like:
- A custom UMich-style logo for MChat (I can generate one for you).
- Embedded YouTube demo markdown if you're hosting it there.
- The
Cargo.tomlfile and module layout to match this documentation.

