+ Lazy static because we need to start caching

and avoid insane heap allocations
This commit is contained in:
shockrah
2021-10-22 23:11:24 -07:00
parent 5fd0279138
commit 31d9794d7f
4 changed files with 79 additions and 16 deletions

View File

@@ -9,6 +9,7 @@ edition = "2018"
rocket = { version = "0.5.0-rc.1", features = [ "json" ] }
tokio = "1.0"
serde = { version = "1.0", features = [ "derive" ] }
lazy_static = "1.4.0"
[dependencies.rocket_dyn_templates]

View File

@@ -1,5 +1,6 @@
#![feature(decl_macro)]
#[macro_use] extern crate rocket;
#[macro_use] extern crate lazy_static;
use std::env;
use rocket_dyn_templates::Template;