Homemade Gemini server.
I've decided to challenge myself with a new project and I have decided to write a Project Gemini server. I'm not sure on the language yet. But It would be interesting to me to do it in rust. As I'm really interested in learing it. Another language that I consider a candidate is Go, because I hear a lot of good things about it. So lets go and try fail try fail try fail and maybe learn something along the way.
Today I finished a first version in Rust with basic functionality. It only serves this page though 😇. It took a while to get my head around the pattern matching and the borrow checker but I think I have the basics down now. Also working with streams and buffers is somewhat new for me. So that also took some time.
Ok I worked some more on it and now it can serve a directory with .gmi files! Still some stuff to do though.
I sadly haven't had any time to work on it since the weekend. The next thing I want to work on is configurability. I have to figure out command line arguments and a way to work with a config file.
I did the command line arguments with the 'clap' crate and it was so easy to do that way. Next thing serving other files than 'text/gemini'. Also, I want to get some more content on here so I'll try to do some writing and I'll have to find a way to get some of my photography on here. Future plans also include mirroring this on the web and doing some kind of distributed publication useing the POSSE-principle and maybe RSS/Atom.