The RUST programming language is one of the programming languages currently in vogue but whose syntax, coming to fix certain problems, of the most complex in programming is difficult when one is a beginner.
I started developing in RUST at the end of 2019 and I had a first serious project around June 2020.
Recently, I had to parse the payload coming from an HTTP connection to extract the body and thus convert it into a struct to use it.
It is easy to use, for example, Actix which integrates actix::web::JSON that can be applied to a service function and which allows you to easily extract its struct and be able to manipulate it.
Well, if it is possible, why then continue my quest and have this kind of problem when we can use an existing solution?
Well, using Actix, the compiled file size becomes large and for small servers to be used on embedded equipment, the size is a challenge! Another reason is that we will only use a small feature of Actix, so why integrate the entire library?
Thanks to Rust, we are able to create a simple HTTP server displaying HTML content and performing at 500 Kb!
… more to come. Make sure you suscribed.
