Skip to main content

Create a File Server

I created the prototype application temporarily, but I wanted to add additional features.
To start an easy task with my home server, I determined to make a file server and save the alarm data to the Mac mini storage.

Its features are quite simple, so I chose Rust. It uses:

  • Actix Web, very reliable web framework for Rust
  • utoipa to implement Swagger UI
  • And other various packages for DB, Environment variables, logging and so on

While implementing a file server with Rust, I wasn't used to it in a few areas:

  • Rust uses Markdown syntax for comments.
  • Documentation for utoipa is quite poor, and its style is somehow different.
  • Grammar and some concepts, like borrowing, are strict. Copilot & IDE helped a lot.

You can view the source code at this link.