nmrshll.hashnode.devGetting started with hyper 0.13 and async/await syntaxYou might have noticed that the latest version of the rust HTTP framework hyper shipped with async/await syntax. The syntax for writing a simple handler and launching the server now looks like this: src/main.rs #![feature(proc_macro_hygiene)] #![all...Sep 9, 2019
nmrshll.hashnode.devWaiting on postgres readiness (in 1 line)I recently launched postgres via docker, and needed a second command to wait for postgres to be ready before trying to connect to it (to apply migrations). While there's an executable for checking postgres readiness called pg_isready, it's not instal...Sep 9, 2019