mavxa.ru

Asynchronous CLI Chat

A test high-performance terminal-based chat application built with Rust and Tokio. Supports multiple clients and real-time broadcasting.

2025
Backend & System
Asynchronous CLI Chat

Real-time Communication in Terminal

This project demonstrates the power of Rust in building low-level network applications. It is a fully functional chat server and client that runs directly in the terminal.

Key Features

  • Asynchronous I/O: Built using Tokio runtime for handling thousands of connections efficiently.
  • TCP Socket Handling: Direct manipulation of TCP streams without heavy web frameworks.
  • Memory Safety: Leverages Rust's borrow checker to ensure crash-free execution.

How it works

The server binds to a local port and spawns a new async task for every incoming connection. Messages are broadcasted to all connected clients using a shared channel.