Nebula, an http server made in Rust

53 points usuariodedanone

Nebula is an HTTP server made in Rust. As described on Readme.md, it was created just as a first language project, nothing too complex. It took me 2-3 days to create it. I'm using the book to learn and I stopped at the modules section and started this. The hard part was converting the stream to a buffer array and the buffer array to a string.
A few points for the language. I come from C# where the evil GC takes care of memory management, so I'm having some difficulty knowing when I should allocate a String on the stack or when I should allocate it on the stack etc. I'm not very happy about it. I don't know if it's a good option to use modules this way, but it worked.

Anyway. I really like the Rust language. I always have the project to make my own http server, so I'm planning to expand and update this stupid project. If anyone can provide advice on code best practices etc I would appreciate it