Easy Sockets
Hi, this is easy sockets, a Rust Crate aimed at simplifying the process of building a TCP messaging protocol, through ergonomic organization system with added helper functions to speed up development.
A major goal of this project is simplicity, meaning using little dependencies and focusing on reliable rock solid systems. This means limiting our dependency count to a single digit number, allowing us to maximize maintainability of this crate in the process.
Details
This project is similar to a previous project of mine, in this project I aimed to simplify that creation of a server capable of talking with an ESP32 microcontroller. There are many parallels between the two and to add more features this version held. This project stopped pver complications with ownership, now I plan on remedying this by taking on a more functional approach.
Examples
Here are some examples of the process.
Client
//! Client side of script
use ;
/// Message that a Client sends
/// Message that the server sends
/// Client side
Server
//! Server side of script
use ;
/// Message that a Client sends
/// Message that the server sends
/// An instance between a server and client
async
Future Plans
There are a number of plans I have of expanding this system, allowing for faster prototyping and deployment.
- Error code macro Allows for quickly defining HTML like error codes where an error is represented by and Integer.
- Server central data A set of data that all instances of a server can access.
- Derive macros for traits
- Improved message size