From 73c100ca9621ff9cfa3ca665e14e997524d92160 Mon Sep 17 00:00:00 2001 From: Harald Eilertsen Date: Mon, 4 Mar 2019 14:08:48 +0100 Subject: Use rocket_contrib StaticFiles module to serve static files. This also changes the structure of the app quite significantly. Instead if generating the html for the index, we simply provide a public/index.html static file instead. For now this seems to make sense, it may not hold in the long run, but that's for another time to worry about. --- Cargo.toml | 1 + 1 file changed, 1 insertion(+) (limited to 'Cargo.toml') diff --git a/Cargo.toml b/Cargo.toml index 1e03f2a..96df761 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -7,3 +7,4 @@ edition = "2018" [dependencies] askama = { version = "0.8.0", features = ["with-rocket"] } rocket = "0.4.0" +rocket_contrib = { version = "0.4.0", default-features = false, features = ["serve"] } -- cgit v1.2.3