Maestro
A lightweight, fast, and ergonomic framework for building TCP & UDP servers in Rust with zero boilerplate.
Overview
Maestro is a networking library that enables you to build high-performance concurrent TCP and UDP servers in Rust. By implementing just two lightweight traits, you can focus on your application's core logic while Maestro handles the network orchestration:
TcpHandlerUdpHandler
In other words: You compose the logic. Maestro conducts the orchestra.
How It Works
Implement a Handler
TCP Handler
use TcpHandler;
use SocketAddr;
use TcpStream;
;
UDP Handler
use UdpHandler;
use ;
use UdpSocket;
;
Registering Services with the Supervisor
use ;
async
Installation
Run the following Cargo command in your project directory:
Or add the following line to your Cargo.toml:
= "0.3.0"
Contributing
We welcome contributions! Here are some good areas to get involved:
- Optimizing network performance and efficiency
- Writing benchmark tests to track and validate performance improvements
- Enhancing documentation for clarity and completeness
- Ensuring cross-platform compatibility
Before submitting a PR, please ensure that your changes are properly formatted by running:
Supporting
Author: Skynõx
If you'd like to support the project, you can donate via the following addresses:
| Bitcoin | bc1q87r2z8szxwqt538edzw5gl397c9v3hzxwjw82h |
|---|---|
| Ethereum | 0xe277049067F72E89326c2C0D11333531d5BbB78B |
Maestro - one who conducts. Just like its name, this library orchestrates the networking layer so your application can focus on the melody of your logic.