- Build SQLx queries beforehand so that we don't have to do PostgreSQL init right away at service start up - Created `Dockerfile.production` - Updated docs - Seperate configuration files for local and development environments
857 B
857 B
Email Newsletter API
- An API to enable blog visitors subcribe to the newsletter so that they can receive updates when new content is published on the blog.
Development setup
- Install cargo-watch.
- Open your favorite text editor (better be neovim or emacs).
- Run
cargo watch -x check -x test -x run
to lint, test and run the binary as soon as you make a change to the file. - Bonus: install and use
mold
, a very fast linker that can link your Rust binary blazingly fast.
Notable Dependencies
actix-web
: Most popular Rust web frameworkserde
: Data structure serialization/deserializationtokio
: Async Runtimetracing
: Alternative to traditional loggingsqlx
: SQL toolkit for Rust. Offers compile-time SQL checked queries