I haven't used tide before, but it looks quite similar to actix-web. I modeled this example on the actix-web one, and it seems to have worked perfectly.